Loading...
string/strtok.3 Libc-763.12 Libc-262
--- Libc/Libc-763.12/string/strtok.3
+++ Libc/Libc-262/string/strtok.3
@@ -22,6 +22,12 @@
 .\"    disclaimer in the documentation and/or other materials provided
 .\"    with the distribution.
 .\"
+.\" 3. All advertising materials mentioning features or use of this
+.\"    software must display the following acknowledgement:
+.\"
+.\"	This product includes software developed by Softweyr LLC, the
+.\"      University of California, Berkeley, and its contributors.
+.\"
 .\" 4. Neither the name of Softweyr LLC, the University nor the names
 .\"    of its contributors may be used to endorse or promote products
 .\"    derived from this software without specific prior written
@@ -42,7 +48,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)strtok.3	8.2 (Berkeley) 2/3/94
-.\" $FreeBSD: src/lib/libc/string/strtok.3,v 1.26 2007/12/12 18:33:06 wes Exp $
+.\" $FreeBSD: src/lib/libc/string/strtok.3,v 1.22 2001/10/01 16:09:00 ru Exp $
 .\"
 .Dd November 27, 1998
 .Dt STRTOK 3
@@ -55,16 +61,9 @@
 .Sh SYNOPSIS
 .In string.h
 .Ft char *
-.Fo strtok
-.Fa "char *restrict str"
-.Fa "const char *restrict sep"
-.Fc
+.Fn strtok "char *str" "const char *sep"
 .Ft char *
-.Fo strtok_r
-.Fa "char *restrict str"
-.Fa "const char *restrict sep"
-.Fa "char **restrict lasts"
-.Fc
+.Fn strtok_r "char *str" "const char *sep" "char **last"
 .Sh DESCRIPTION
 .Bf -symbolic
 This interface is obsoleted by
@@ -99,9 +98,7 @@
 The context pointer
 .Fa last
 must be provided on each call.
-The
 .Fn strtok_r
-function
 may also be used to nest two parsing loops within one another, as
 long as separate context pointers are used.
 .Pp
@@ -148,22 +145,13 @@
 .Xr strrchr 3 ,
 .Xr strsep 3 ,
 .Xr strspn 3 ,
-.Xr strstr 3 ,
-.Xr wcstok 3
+.Xr strstr 3
 .Sh STANDARDS
 The
 .Fn strtok
 function
 conforms to
 .St -isoC .
-.Sh AUTHORS
-.An Wes Peters ,
-Softweyr LLC:
-.Aq wes@softweyr.com
-.Pp
-Based on the
-.Fx 3.0
-implementation.
 .Sh BUGS
 The System V
 .Fn strtok ,
@@ -177,3 +165,11 @@
 Since this implementation always alters the next starting point,
 such a sequence of calls would always return
 .Dv NULL .
+.Sh AUTHORS
+.An Wes Peters ,
+Softweyr LLC:
+.Aq wes@softweyr.com
+.Pp
+Based on the
+.Fx 3.0
+implementation.