]>
Commit | Line | Data |
---|---|---|
1 | --- strspn.3.bsdnew 2009-11-30 13:52:24.000000000 -0800 | |
2 | +++ strspn.3 2009-11-30 14:55:45.000000000 -0800 | |
3 | @@ -43,23 +43,26 @@ | |
4 | .Sh SYNOPSIS | |
5 | .In string.h | |
6 | .Ft size_t | |
7 | -.Fn strspn "const char *s" "const char *charset" | |
8 | +.Fo strspn | |
9 | +.Fa "const char *s1" | |
10 | +.Fa "const char *s2" | |
11 | +.Fc | |
12 | .Sh DESCRIPTION | |
13 | The | |
14 | .Fn strspn | |
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 | occur in the null-terminated string | |
23 | -.Fa charset . | |
24 | +.Fa s2 . | |
25 | In other words, it computes the string array index in | |
26 | -.Fa s | |
27 | +.Fa s1 | |
28 | of the first character of | |
29 | -.Fa s | |
30 | +.Fa s1 | |
31 | which is not in | |
32 | -.Fa charset , | |
33 | +.Fa s2 , | |
34 | else the index of the first null character. | |
35 | .Sh RETURN VALUES | |
36 | The |