summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1995-05-13 07:41:35 +0000
committerjtc <jtc@NetBSD.org>1995-05-13 07:41:35 +0000
commit7ca5cd45b003b2ebbc499ff0645032ea473323b0 (patch)
tree566acdf74daf827d61344ba5520f980347007031 /lib/libc/string
parentefd516d7017e8fe32d9019b3da85e5e188993d8b (diff)
strtok replaces the separator character, not the token, with a NUL.
(Fix from PR #891.)
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strtok.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/strtok.3 b/lib/libc/string/strtok.3
index e8f48556da0..048dcbd7a96 100644
--- a/lib/libc/string/strtok.3
+++ b/lib/libc/string/strtok.3
@@ -34,7 +34,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strtok.3 5.8 (Berkeley) 6/29/91
-.\" $Id: strtok.3,v 1.2 1993/08/01 07:43:38 mycroft Exp $
+.\" $Id: strtok.3,v 1.3 1995/05/13 07:41:35 jtc Exp $
.\"
.Dd June 29, 1991
.Dt STRTOK 3
@@ -74,7 +74,7 @@ The
.Fn strtok
function
returns a pointer to the beginning of each subsequent token in the string,
-after replacing the token itself with a
+after replacing the separator character itself with a
.Dv NUL
character.
When no more tokens remain, a null pointer is returned.