]> git.saurik.com Git - apple/libc.git/blob - string/FreeBSD/strcspn.3.patch
35258900310a038f862ff9eb279c2526a9e7caa2
[apple/libc.git] / string / FreeBSD / strcspn.3.patch
1 --- _SB/Libc/string/FreeBSD/strcspn.3 2003-05-20 15:23:54.000000000 -0700
2 +++ _SB/Libc/string/FreeBSD/strcspn.3.edit 2006-06-28 16:55:53.000000000 -0700
3 @@ -47,27 +47,29 @@
4 .Sh SYNOPSIS
5 .In string.h
6 .Ft size_t
7 -.Fn strcspn "const char *s" "const char *charset"
8 +.Fo strcspn
9 +.Fa "const char *s1"
10 +.Fa "const char *s2"
11 +.Fc
12 .Sh DESCRIPTION
13 The
14 .Fn strcspn
15 function
16 spans the initial part of the null-terminated string
17 -.Fa s
18 +.Fa s1 ,
19 as long as the characters from
20 -.Fa s
21 +.Fa s1
22 do not occur in string
23 -.Fa charset
24 +.Fa s2
25 (it
26 spans the
27 .Em complement
28 of
29 -.Fa charset ) .
30 +.Fa s2 ) .
31 .Sh RETURN VALUES
32 The
33 .Fn strcspn
34 -function
35 -returns the number of characters spanned.
36 +function returns the number of characters spanned.
37 .Sh SEE ALSO
38 .Xr memchr 3 ,
39 .Xr strchr 3 ,