Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Kevin Easton <kevin@-nospam-pcug.org.au>
Subject: Re: segfault and gcc-2.96
Date: Wed, 6 Nov 2002 04:40:09 +0000 (UTC)	[thread overview]
Message-ID: <aqa6f9$3sc$7@tomato.pcug.org.au> (raw)
In-Reply-To: 878z08vonz.fsf@student.uni-tuebingen.de

In comp.os.linux.development.apps Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> wrote:
> JMK <jeffrey.m.klopotic@lmco.nospam.com> writes:
> 
>> char *f1 = "default.str";
>>       ...
>>       strcpy (f1, pfix); <--------    Program received signal SIGSEGV,
> 
> String literals are not writable. They are of type const char*.

Actually for historical reasons, they're of type char *, but their
contents are still not modifiable.

	- Kevin.



      parent reply	other threads:[~2002-11-06  4:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <apqobk$ocj$1@news.tudelft.nl>
     [not found] ` <3DC324DA.4C495AEC@lmco.nospam.com>
     [not found]   ` <EzMw9.1438$hf.102567@castor.casema.net>
2002-11-04 23:32     ` segfault and gcc-2.96 JMK
2002-11-05  0:35       ` Ulrich Weigand
2002-11-05  0:35       ` Falk Hueffner
2002-11-05  7:31         ` Mark Swaanenburg
2002-11-06  4:40         ` Kevin Easton [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox