From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3766 invoked by alias); 17 Jul 2006 09:01:47 -0000 Received: (qmail 3757 invoked by uid 22791); 17 Jul 2006 09:01:47 -0000 X-Spam-Check-By: sourceware.org Received: from anchor-post-30.mail.demon.net (HELO anchor-post-30.mail.demon.net) (194.217.242.88) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Jul 2006 09:01:45 +0000 Received: from aph.demon.co.uk ([80.177.99.144] helo=mammoth.littlepinkcloud.com) by anchor-post-30.mail.demon.net with esmtp (Exim 4.42) id 1G2Oxv-000CRW-1U for gcc-help@gcc.gnu.org; Mon, 17 Jul 2006 09:00:46 +0000 Received: from zebedee.littlepinkcloud.COM (zebedee.pink [10.0.0.17]) by mammoth.littlepinkcloud.com (8.12.11.20060308/8.12.11) with ESMTP id k6H90ZeJ005208 for ; Mon, 17 Jul 2006 10:00:35 +0100 Received: from zebedee.littlepinkcloud.COM (localhost.localdomain [127.0.0.1]) by zebedee.littlepinkcloud.COM (8.13.6/8.13.5) with ESMTP id k6H90WIg024224; Mon, 17 Jul 2006 10:00:32 +0100 Received: (from aph@localhost) by zebedee.littlepinkcloud.COM (8.13.6/8.13.5/Submit) id k6H90VJK024221; Mon, 17 Jul 2006 10:00:31 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17595.20911.370395.42998@zebedee.pink> Date: Mon, 17 Jul 2006 09:01:00 -0000 From: Andrew Haley To: "Bill McEnaney" Cc: "Vivek Katakam" , gcc-help@gcc.gnu.org Subject: Re: Reg seg. violations In-Reply-To: <20060716220854.5BECD71B2B@saratoga.rkirkpat.net> References: <20060716220854.5BECD71B2B@saratoga.rkirkpat.net> X-Mailer: VM 7.19 under Emacs 21.4.1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00216.txt.bz2 Bill McEnaney writes: > Maybe another problem is that getenv() expects a pointer, not a string > literal. It seems to me although a pointer can point to a string > literal, a string literal can't point to anything. If I'm mistaken, > would someone please say so? You're mistaken. getenv() expects a const char*, and a string literal has a type char[], which is compatible. Andrew.