This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: bug in strsep?
- To: Jason Knight <jwknight at ucdavis dot edu>
- Subject: Re: bug in strsep?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 12 Dec 2000 22:09:21 -0200
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.GSO.4.21.0012121539540.17131-100000@logan.ucdavis.edu>
On Dec 12, 2000, Jason Knight <jwknight@ucdavis.edu> wrote:
> Trying to use "char* strsep(char **stringp, const char
> *delim)" which supposedly
Don't pass it a string literal in stringp. The string must be
modifyable, and string literals are placed in read-only memory.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me