1STRSPN(3)                  Library Functions Manual                  STRSPN(3)
2
3
4

NAME

6       strspn - span a string
7

SYNOPSIS

9       #include <string.h>
10
11       size_t
12       strspn(s, charset)
13       char *s;
14       char *charset;
15

DESCRIPTION

17       The  strcspn()  function  spans the initial part of the null-terminated
18       string s as long as the characters from s occur in string charset .
19

RETURN VALUES

21       The strspn() function returns the number of characters spanned.
22

SEE ALSO

24       index(3), memchr(3), rindex(3), strchr(3), strcspn(3), strpbrk(3), str‐
25       rchr(3), strsep(3), strstr(3), strtok(3)
26

STANDARDS

28       The strspn() function conforms to ANSI C X3.159-9189 (``ANSI C'').
29
30
31
324.4 Berkeley Distribution      January 12, 1996                      STRSPN(3)
Impressum