NetBSD Problem Report #891

From gnats  Tue Mar 21 23:51:27 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id XAA23624 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 21 Mar 1995 23:51:24 -0800
Message-Id: <199503220749.CAA02434@azathoth>
Date: Wed, 22 Mar 1995 02:49:17 -0500
From: Root of all evil <root@azathoth>
Reply-To: Mike Long <mike.long@analog.com>
To: gnats-bugs@NetBSD.ORG
Subject: strtok(3) confuses tokens with separators
X-Send-Pr-Version: 3.2

>Number:         891
>Category:       lib
>Synopsis:       strtok(3) confuses tokens with separators
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 22 00:05:02 +0000 1995
>Closed-Date:    Sat May 13 00:40:55 +0000 1995
>Last-Modified:  Tue Sep 04 23:59:22 +0000 2001
>Originator:     Mike Long
>Release:        March 20, 1995
>Organization:
	not!
>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.

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Sat May 13 00:40:55 1995
State-Changed-Why:
Fixed.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.