]> git.saurik.com Git - apple/libc.git/blame - string/FreeBSD/strcspn.3.patch
Libc-763.11.tar.gz
[apple/libc.git] / string / FreeBSD / strcspn.3.patch
CommitLineData
1f2f436a
A
1--- strcspn.3.orig 2009-11-30 13:52:23.000000000 -0800
2+++ strcspn.3 2009-11-30 14:57:01.000000000 -0800
3@@ -43,28 +43,31 @@
224c7076
A
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 ) .
1f2f436a
A
31 In other words, it computes the string array index in
32-.Fa s
33+.Fa s1
34 of the first character of
35-.Fa s
36+.Fa s1
37 which is also in
38-.Fa charset ,
39+.Fa s2 ,
40 else the index of the first null character.
224c7076
A
41 .Sh RETURN VALUES
42 The