strtok.3: The caller should not modify 'saveptr' between strtok_r() calls

Reported-by: eponymous alias <eponymousalias@yahoo.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-09-26 07:53:24 +02:00
parent 362310a7bd
commit 85987f9818
1 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,8 @@ is ignored.
In subsequent calls,
.I str
should be NULL, and
.I *saveptr
.I saveptr
(and the buffer that it points to)
should be unchanged since the previous call.
.PP
Different strings may be parsed concurrently using sequences of calls to