]> git.saurik.com Git - apple/libc.git/blobdiff - string/strcspn.3
Libc-763.11.tar.gz
[apple/libc.git] / string / strcspn.3
index 7d17774f4f9806e53daacb55fcfc587ad6f29321..938f80b415fcac11fd1d9d0b341b0aff76710100 100644 (file)
 .\" 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.
@@ -34,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)strcspn.3  8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/string/strcspn.3,v 1.7 2001/10/01 16:09:00 ru Exp $
+.\" $FreeBSD: src/lib/libc/string/strcspn.3,v 1.9 2007/01/09 00:28:12 imp Exp $
 .\"
 .Dd June 4, 1993
 .Dt STRCSPN 3
@@ -66,10 +62,18 @@ spans the
 .Em complement
 of
 .Fa s2 ) .
+In other words, it computes the string array index in
+.Fa s1
+of the first character of
+.Fa s1
+which is also in
+.Fa s2 ,
+else the index of the first null character.
 .Sh RETURN VALUES
 The
 .Fn strcspn
-function returns the number of characters spanned.
+function
+returns the number of characters spanned.
 .Sh SEE ALSO
 .Xr memchr 3 ,
 .Xr strchr 3 ,