Loading...
--- Libc/Libc-1725.40.4/string/FreeBSD/strspn.3
+++ Libc/Libc-763.13/string/FreeBSD/strspn.3
@@ -13,7 +13,7 @@
.\" 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. Neither the name of the University nor the names of 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.
.\"
@@ -30,14 +30,13 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)strspn.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD$
+.\" $FreeBSD: src/lib/libc/string/strspn.3,v 1.11 2009/04/07 13:42:53 trasz Exp $
.\"
-.Dd May 24, 2014
+.Dd June 4, 1993
.Dt STRSPN 3
.Os
.Sh NAME
-.Nm strspn ,
-.Nm strcspn
+.Nm strspn
.Nd span a string
.Sh LIBRARY
.Lb libc
@@ -45,8 +44,6 @@
.In string.h
.Ft size_t
.Fn strspn "const char *s" "const char *charset"
-.Ft size_t
-.Fn strcspn "const char *s" "const char *charset"
.Sh DESCRIPTION
The
.Fn strspn
@@ -57,44 +54,22 @@
.Fa s
occur in the null-terminated string
.Fa charset .
-In other words, it computes the string array index
+In other words, it computes the string array index in
+.Fa s
of the first character of
.Fa s
which is not in
.Fa charset ,
else the index of the first null character.
-.Pp
-The
-.Fn strcspn
-function
-spans the initial part of the null-terminated string
-.Fa s
-as long as the characters from
-.Fa s
-.Sy do not
-occur in the null-terminated string
-.Fa charset
-.Po it spans the
-.Sy complement
-of
-.Fa charset
-.Pc .
-In other words, it computes the string array index
-of the first character of
-.Fa s
-which is also in
-.Fa charset ,
-else the index of the first null character.
.Sh RETURN VALUES
The
.Fn strspn
-and
-.Fn strcspn
-functions
-return the number of characters spanned.
+function
+returns the number of characters spanned.
.Sh SEE ALSO
.Xr memchr 3 ,
.Xr strchr 3 ,
+.Xr strcspn 3 ,
.Xr strpbrk 3 ,
.Xr strrchr 3 ,
.Xr strsep 3 ,
@@ -104,8 +79,6 @@
.Sh STANDARDS
The
.Fn strspn
-and
-.Fn strcspn
-functions
-conform to
+function
+conforms to
.St -isoC .