strtok.3: Correct description of use of 'saveptr' argument in strtok_r()

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-23 14:21:19 +02:00
parent 9d33e03b95
commit 6c578de29d
1 changed files with 2 additions and 2 deletions

View File

@ -146,12 +146,12 @@ On the first call to
.BR strtok_r (),
.I str
should point to the string to be parsed, and the value of
.I saveptr
.I *saveptr
is ignored.
In subsequent calls,
.I str
should be NULL, and
.I saveptr
.I *saveptr
should be unchanged since the previous call.
.PP
Different strings may be parsed concurrently using sequences of calls to