Commit | Line | Data |
---|---|---|
735e660a KB |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" This code is derived from software contributed to Berkeley by | |
5 | .\" Chris Torek. | |
6 | .\" | |
7 | .\" %sccs.include.redist.man% | |
8 | .\" | |
9 | .\" @(#)strcspn.3 5.1 (Berkeley) %G% | |
10 | .\" | |
11 | .TH STRCSPN 3 "" | |
12 | .UC 7 | |
13 | .SH NAME | |
14 | strcspn \- span the complement of a string | |
15 | .SH SYNOPSIS | |
16 | .nf | |
17 | .ft B | |
18 | #include <string.h> | |
19 | ||
20 | size_t | |
21 | strcspn(const char *s, const char *charset); | |
22 | .ft R | |
23 | .fi | |
24 | .SH DESCRIPTION | |
25 | .B Strcspn | |
26 | spans the initial part of the null-terminated string | |
27 | .I s | |
28 | as long as the characters from | |
29 | .I s | |
30 | do not occur in string | |
31 | .I charset | |
32 | (i.e., | |
33 | .I strcspn | |
34 | spans the | |
35 | .I complement | |
36 | of | |
37 | .IR charset ). | |
38 | .B Strcspn | |
39 | returns the number of characters spanned. | |
40 | .SH SEE ALSO | |
41 | index(3), memchr(3), rindex(3), strchr(3), strpbrk(3), strrchr(3), | |
42 | strsep(3), strspn(3), strstr(3), strtok(3) | |
43 | .SH STANDARDS | |
44 | .B Strcspn | |
45 | conforms to ANSI X3.159-1989 (``ANSI C''). |