Subject: Re: snprintf() problem or I am stupid C programmer
To: None <firstname.lastname@example.org>
From: Ingolf Steinbach <email@example.com>
Date: 07/18/2001 09:15:53
On Tue, Jul 17, 2001 at 09:29:57PM +0200, Manuel Bouyer wrote:
> gcc will allocate strings in text segment, which means they're read-only.
Doesn't that mean that the compiler should at least issue
a diagnostic if you implicitly cast away the const-ness
by saying char* xyz = "foo";?
Ingolf Steinbach Jena-Optronik GmbH
Ingolf.Steinbach@jena-optronik.de ++49 3641 200-147
PGP: 0x7B3B5661 213C 828E 0C92 16B5 05D0 4D5B A324 EC04