1STRSPN(P)                  POSIX Programmer's Manual                 STRSPN(P)
2
3
4

NAME

6       strspn - get length of a substring
7

SYNOPSIS

9       #include <string.h>
10
11       size_t strspn(const char *s1, const char *s2);
12
13

DESCRIPTION

15       The  strspn() function shall compute the length (in bytes) of the maxi‐
16       mum initial segment of the string  pointed  to  by  s1  which  consists
17       entirely of bytes from the string pointed to by s2.
18

RETURN VALUE

20       The strspn() function shall return the length of s1; no return value is
21       reserved to indicate an error.
22

ERRORS

24       No errors are defined.
25
26       The following sections are informative.
27

EXAMPLES

29       None.
30

APPLICATION USAGE

32       None.
33

RATIONALE

35       None.
36

FUTURE DIRECTIONS

38       None.
39

SEE ALSO

41       strcspn()  ,  the  Base  Definitions  volume  of  IEEE Std 1003.1-2001,
42       <string.h>
43
45       Portions  of  this text are reprinted and reproduced in electronic form
46       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
47       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
48       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
49       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
50       event of any discrepancy between this version and the original IEEE and
51       The  Open Group Standard, the original IEEE and The Open Group Standard
52       is the referee document. The original Standard can be  obtained  online
53       at http://www.opengroup.org/unix/online.html .
54
55
56
57IEEE/The Open Group                  2003                            STRSPN(P)
Impressum