On 2005-07-06 at 21:41:00 Stefan Sperling wrote: >> >> char *c = "whats:your:name:buddy?"; >> made type. that should read "that is read only copy" :) > Dark corners of C... So it's my own fault, as usual :)
Actually, this dark corner was enlightened not so long ago. String constants used to be writable for years, until someone decided that it was better not to. :) Anyway, you can get the old (deprecated!) behaviour by using the -fwritable-strings option to gcc.
pgpOjDCRlF0Rw.pgp
Description: PGP signature