This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] Should strtok_r be preferred to strtok?
- From: Roland McGrath <roland at redhat dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org, Ulrich Drepper <drepper at redhat dot com>,Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- Date: Mon, 25 Nov 2002 12:52:55 -0800
- Subject: Re: [RFC] Should strtok_r be preferred to strtok?
strtok should certainly be avoided like the plague. strtok_r is better,
and I guess is POSIX.1. There is also strsep, a BSD extension with a
different interface but no global variable like strtok.