strtok.3: ATTRIBUTES: Note function that is not thread-safe

The function strtok() is not thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Peng Haitao 2013-06-06 11:25:17 +08:00 committed by Michael Kerrisk
parent b6c6e0a33d
commit 3220895675
1 changed files with 9 additions and 0 deletions

View File

@ -166,6 +166,15 @@ and
.BR strtok_r ()
functions return a pointer to
the next token, or NULL if there are no more tokens.
.SH ATTRIBUTES
.SS Multithreading (see pthreads(7))
The
.BR strtok ()
function is not thread-safe.
.LP
The
.BR strtok_r ()
function is thread-safe.
.SH CONFORMING TO
.TP
.BR strtok ()