httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: strsep() not portable? (was: cvs commit: httpd-2.0/server config.c core.c request.c)
Date Wed, 14 Jul 2004 18:18:48 GMT
* "Jean-Jacques Clar" <JJCLAR@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>

Mime
View raw message