tis 2006-04-25 klockan 21:52 +1000 skrev Robert Collins: > So, I did some more today, courtesy of ANZAC day. Hopefully next weekend > I'll get another chance to cut some code. I'm thinking of changing > strtok -> strtok_r in the parser. > > How portable is strtok_r ? Specifically is it available on mingw, BSD > systems ?
The Linux man pages says:
CONFORMING TO
strtok()
SVID 3, POSIX.1-2001, 4.3BSD, ISO 9899
strtok_r()
POSIX.1-2001
SUSv2 says:
strtok() derived from Issue 1 of the SVID.
strtok_r() derived from the POSIX Threads Extension
(1003.1c-1995).
And in SUSv3-2004 strtok_r is marked as optional, part of the optional
"Thread-Safe Functions" set.
So I would say it's fairly portable but still needs a replacement
implementation shipped with Squid for the poor bastards who don't have
it..
Regards
Henrik
signature.asc
Description: Detta är en digitalt signerad meddelandedel
