view doc/posix-functions/strtok_r.texi @ 11960:bc6846876d71

Work around a glibc bug in strtok_r.
author Ben Pfaff <blp@gnu.org>
date Sun, 06 Sep 2009 17:17:41 +0200
parents c83dc7e8df57
children bb0ceefd22dc
line wrap: on
line source

@node strtok_r
@section @code{strtok_r}
@findex strtok_r

POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/strtok_r.html}

Gnulib module: strtok_r

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw.
@item
This function crashes when invoked from code compiled with optimization enabled
on some platforms:
glibc 2.7.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function cannot work correctly on character strings in multibyte locales.
Gnulib provides an alternative function @code{mbstok_r} that works on character
strings in all locales.
@end itemize