bus error in strsep
Dimitry Andric
dimitry at andric.com
Wed Jul 6 19:56:09 GMT 2005
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050706/b1659b27/attachment.bin
More information about the freebsd-hackers
mailing list