Commit | Line | Data |
---|---|---|
ae59e04c | 1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. |
f1dde4e0 KB |
2 | .\" All rights reserved. |
3 | .\" | |
4 | .\" This code is derived from software contributed to Berkeley by | |
043368e6 KB |
5 | .\" Chris Torek and the American National Standards Committee X3, |
6 | .\" on Information Processing Systems. | |
7 | .\" | |
f1dde4e0 KB |
8 | .\" %sccs.include.redist.man% |
9 | .\" | |
043368e6 | 10 | .\" @(#)strspn.3 5.3 (Berkeley) %G% |
f1dde4e0 | 11 | .\" |
ae59e04c CL |
12 | .Dd |
13 | .Dt STRSPN 3 | |
14 | .Os | |
15 | .Sh NAME | |
16 | .Nm strspn | |
17 | .Nd span a string | |
18 | .Sh SYNOPSIS | |
19 | .Fd #include <string.h> | |
20 | .Ft size_t | |
21 | .Fn strspn "const char *s" "const char *charset" | |
22 | .Sh DESCRIPTION | |
23 | The | |
24 | .Xr strcspn | |
25 | function | |
f1dde4e0 | 26 | spans the initial part of the null-terminated string |
ae59e04c | 27 | .Fa s |
f1dde4e0 | 28 | as long as the characters from |
ae59e04c | 29 | .Fa s |
f1dde4e0 | 30 | occur in string |
ae59e04c CL |
31 | .Fa charset . |
32 | .Sh RETURN VALUES | |
33 | The | |
34 | .Fn strspn | |
35 | function | |
f1dde4e0 | 36 | returns the number of characters spanned. |
ae59e04c CL |
37 | .Sh SEE ALSO |
38 | .Xr index 3 , | |
39 | .Xr memchr 3 , | |
40 | .Xr rindex 3 , | |
41 | .Xr strchr 3 , | |
42 | .Xr strcspn 3 , | |
43 | .Xr strpbrk 3 , | |
44 | .Xr strrchr 3 , | |
45 | .Xr strsep 3 , | |
46 | .Xr strstr 3 , | |
47 | .Xr strtok 3 | |
48 | .Sh STANDARDS | |
49 | The | |
50 | .Fn strspn | |
51 | function | |
52 | conforms to | |
53 | .St -ansiC . |