[RFC] Should strtok_r be preferred to strtok?

Paolo Carlini pcarlini@unitus.it
Mon Nov 25 13:23:00 GMT 2002


Hi,

Wolfgang Bangerth, in private mail, pointed my attention to the the 
issue of thread-safety for strtok(), which I blatantly used in the 
rewrite of locale::_Impl::_Impl(const char* __s, size_t __refs) for 
thread safe :-( Posix localenames...

Should we autoconf for strtok_r and prefer it when available?

Ciao, thanks,
Paolo.



More information about the Libstdc++ mailing list