mirror of https://github.com/mkerrisk/man-pages
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:
parent
9d33e03b95
commit
6c578de29d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue