This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[RFC] Should strtok_r be preferred to strtok?
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: libstdc++ at gcc dot gnu dot org
- Cc: Ulrich Drepper <drepper at redhat dot com>, Roland McGrath <roland at redhat dot com>,Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- Date: Mon, 25 Nov 2002 21:33:18 +0100
- Subject: [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.