mirror of https://github.com/mkerrisk/man-pages
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:
parent
b6c6e0a33d
commit
3220895675
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue