Re: [PHP4BETA] strtok

From: Date: Wed, 01 Sep 1999 13:03:27 +0000
Subject: Re: [PHP4BETA] strtok
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3963@lists.php.net to get a copy of this message
The MSVC++ strtok is thread safe with one 'problem', it is not 'safe' within a single thread. This means you cannot use strtok on string A, then on string B, then go back to using it on string A. But that's the same behaviour on unix anyway. "Thies C. Arntzen" wrote: > > hmm, > > that's not really thread-save isn't it? (just saw frank's commit of > win32/sendmail.c in php3) > > just curious, > tc > > from the linux man-page: > > BUGS: > Never use this function. This function modifies its first argument. The > identity of the delimiting character is lost. This function cannot be > used on constant strings. > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" > Digital Collections Phone +49 40 235350 Fax +49 40 23535180 > Hammerbrookstr. 93 20097 Hamburg / Germany > > -- > PHP 4 Beta

« previous php.version4 (#3963) next »