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

NAME

6       strcspn - span the complement of a string
7

SYNOPSIS

9       #include <string.h>
10
11       size_t
12       strcspn(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  do  not  occur  in  string
19       charset (it spans the complement of charset ) .
20

RETURN VALUES

22       The strcspn() function returns the number of characters spanned.
23

SEE ALSO

25       index(3),  memchr(3),  rindex(3),  strchr(3),  strpbrk(3),  strrchr(3),
26       strsep(3), strspn(3), strstr(3), strtok(3)
27

STANDARDS

29       The strcspn() function conforms to ANSI C X3.159-1989 (``ANSI C'').
30
31
32
334.4 Berkeley Distribution      January 12, 1996                     STRCSPN(3)
Impressum