]> git.saurik.com Git - apple/libc.git/blobdiff - string/FreeBSD/strcspn.3
Libc-1082.50.1.tar.gz
[apple/libc.git] / string / FreeBSD / strcspn.3
index dc57aa1c28b7be1350bbb2f67711d33820899385..938f80b415fcac11fd1d9d0b341b0aff76710100 100644 (file)
 .Sh SYNOPSIS
 .In string.h
 .Ft size_t
-.Fn strcspn "const char *s" "const char *charset"
+.Fo strcspn
+.Fa "const char *s1"
+.Fa "const char *s2"
+.Fc
 .Sh DESCRIPTION
 The
 .Fn strcspn
 function
 spans the initial part of the null-terminated string
-.Fa s
+.Fa s1 ,
 as long as the characters from
-.Fa s
+.Fa s1
 do not occur in string
-.Fa charset
+.Fa s2
 (it
 spans the
 .Em complement
 of
-.Fa charset ) .
+.Fa s2 ) .
 In other words, it computes the string array index in
-.Fa s
+.Fa s1
 of the first character of
-.Fa s
+.Fa s1
 which is also in
-.Fa charset ,
+.Fa s2 ,
 else the index of the first null character.
 .Sh RETURN VALUES
 The