Penguin
Annotated edit history of strspn(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 STRSPN
2 !!!STRSPN
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 CONFORMING TO
8 SEE ALSO
9 ----
10 !!NAME
11
12
13 strspn, strcspn - search a string for a set of characters
14 !!SYNOPSIS
15
16
17 __#include
18 __''s''__, const char *__''accept''__);
19 size_t strcspn(const char *__''s''__, const char *__''reject''__);
20 __
21 !!DESCRIPTION
22
23
24 The __strspn()__ function calculates the length of the
25 initial segment of ''s'' which consists entirely of
26 characters in ''accept''.
27
28
29 The __strcspn()__ function calculates the length of the
30 initial segment of ''s'' which consists entirely of
31 characters not in ''reject''.
32 !!RETURN VALUE
33
34
35 The __strspn()__ function returns the number of
36 characters in the initial segment of ''s'' which consist
37 only of characters from ''accept''.
38
39
40 The __strcspn()__ function returns the number of
41 characters in the initial segment of ''s'' which are not
42 in the string ''reject''.
43 !!CONFORMING TO
44
45
46 SVID 3, POSIX, BSD 4.3, ISO 9899
47 !!SEE ALSO
48
49
50 index(3), memchr(3), rindex(3),
51 strchr(3), strpbrk(3), strsep(3),
52 strstr(3), strtok(3)
53 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.