You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by André Malo <nd...@perlig.de> on 2004/07/14 20:18:48 UTC
Re: strsep() not portable? (was: cvs commit: httpd-2.0/server
config.c core.c request.c)
* "Jean-Jacques Clar" <JJ...@novell.com> wrote:
> > Index: core.c
> > + char *w = strsep(&p, ",");
>
> strsep() seems to be platform dependant. That function does not
> exist on NetWare, and I don't think it exists on Windows.
> It should at least be made an APR function.
Uh, oh, right. There's apr_strtok for such tasks, which is also thread safe.
nd
--
"Das Verhalten von Gates hatte mir bewiesen, dass ich auf ihn und seine
beiden Gefährten nicht zu zählen brauchte" -- Karl May, "Winnetou III"
Im Westen was neues: <http://pub.perlig.de/books.html#apache2>