bug in strsep?

Jason Knight jwknight@ucdavis.edu
Tue Dec 12 15:43:00 GMT 2000


Hi,

	Trying to use "char* strsep(char **stringp, const char
*delim)" which supposedly 

	"returns the next token from the string stringp which is delimited
by delim.  The token is terminated with a `\0' character and stringp is
updated to point past the token."

only if I give it a delimiter that is in the string I get a seg fault,
and if I give it a delimiter that is not in the string, it returns the
entire string.

thanks
Jason



More information about the Gcc-help mailing list