This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC] Should strtok_r be preferred to strtok?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]