Loading...
string/FreeBSD/strsep.3 Libc-1725.40.4 Libc-583
--- Libc/Libc-1725.40.4/string/FreeBSD/strsep.3
+++ Libc/Libc-583/string/FreeBSD/strsep.3
@@ -12,6 +12,10 @@
 .\" 2. Redistributions in binary form must reproduce the above copyright
 .\"    notice, this list of conditions and the following 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 the University of
+.\"	California, Berkeley and its contributors.
 .\" 4. Neither the name of the University nor the names of its contributors
 .\"    may be used to endorse or promote products derived from this software
 .\"    without specific prior written permission.
@@ -29,9 +33,9 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)strsep.3	8.1 (Berkeley) 6/9/93
-.\" $FreeBSD: src/lib/libc/string/strsep.3,v 1.16 2008/12/05 15:50:59 pjd Exp $
+.\" $FreeBSD: src/lib/libc/string/strsep.3,v 1.14 2004/07/02 23:52:13 ru Exp $
 .\"
-.Dd December 5, 2008
+.Dd June 9, 1993
 .Dt STRSEP 3
 .Os
 .Sh NAME
@@ -81,21 +85,6 @@
 .Sh EXAMPLES
 The following uses
 .Fn strsep
-to parse a string, and prints each token in separate line:
-.Bd -literal -offset indent
-char *token, *string, *tofree;
-
-tofree = string = strdup("abc,def,ghi");
-assert(string != NULL);
-
-while ((token = strsep(&string, ",")) != NULL)
-	printf("%s\en", token);
-
-free(tofree);
-.Ed
-.Pp
-The following uses
-.Fn strsep
 to parse a string, containing tokens delimited by white space, into an
 argument vector:
 .Bd -literal -offset indent