httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Jacques Clar" <JJC...@novell.com>
Subject strsep() not portable? (was: cvs commit: httpd-2.0/server config.c core.c request.c)
Date Wed, 14 Jul 2004 17:24:37 GMT
>  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.

 
Here is the notes from the man page:
      The  strsep() function was introduced as a replacement for
       strtok(), since the latter  cannot  handle  empty  fields.
       (However,  strtok()  conforms  to ANSI-C and hence is more
       portable.)
Thanks,
JJ

Mime
View raw message