Subject: lib/891: strtok(3) confuses tokens with separators
To: None <gnats-admin@NetBSD.ORG>
From: Root of all evil <root@azathoth>
List: netbsd-bugs
Date: 03/22/1995 00:05:05
>Number:         891
>Category:       lib
>Synopsis:       strtok(3) confuses tokens with separators
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 22 00:05:02 1995
>Originator:     Mike Long <mike.long@analog.com>
>Organization:
	not!
>Release:        March 20, 1995
>Environment:
System: NetBSD azathoth 1.0A NetBSD 1.0A (AZATHOTH) #0: Mon Mar 20 00:01:44 EST 1995 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386
>Description:
	strtok(3) confuses tokens with separators
>How-To-Repeat:
	man strtok
>Fix:
--- /usr/src/lib/libc/string/strtok.3~  Fri Dec 17 01:28:19 1993
+++ /usr/src/lib/libc/string/strtok.3   Wed Mar 22 02:43:42 1995
@@ -74,7 +74,7 @@
 .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.

>Audit-Trail:
>Unformatted: