Date: Wed, 6 Jul 2005 16:15:56 -0400 From: Mike Meyer <mwm@mired.org> To: Dimitry Andric <dimitry@andric.com> Cc: freebsd-hackers@freebsd.org, Stefan Sperling <stsp@stsp.in-berlin.de> Subject: Re: bus error in strsep Message-ID: <17100.15356.509506.986644@bhuda.mired.org> In-Reply-To: <732507769.20050706215600@andric.com> References: <20050706185536.GA4700@dice.seeling33.de> <42CC2C36.7090003@savvis.net> <42CC2C9F.5000301@savvis.net> <20050706194100.GA5170@dice.seeling33.de> <732507769.20050706215600@andric.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In <732507769.20050706215600@andric.com>, Dimitry Andric <dimitry@andric.com> typed: > 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. :) I think it used to be implementation-dependent. IIRC, the VMS C compiler didn't have writable string constants. I know there was something like that that bit attempts to port Unix programs to VMS. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17100.15356.509506.986644>