bus error in strsep

Mike Meyer mwm at mired.org
Wed Jul 6 20:42:25 GMT 2005


In <732507769.20050706215600 at andric.com>, Dimitry Andric <dimitry at 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 at mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.


More information about the freebsd-hackers mailing list