1WCSSPN(3)                  Linux Programmer's Manual                 WCSSPN(3)
2
3
4

NAME

6       wcsspn  -  advance in a wide-character string, skipping any of a set of
7       wide characters
8

SYNOPSIS

10       #include <wchar.h>
11
12       size_t wcsspn(const wchar_t *wcs, const wchar_t *accept);
13

DESCRIPTION

15       The wcsspn() function is the wide-character equivalent of the strspn(3)
16       function.   It  determines the length of the longest initial segment of
17       wcs which consists entirely of wide-characters listed  in  accept.   In
18       other words, it searches for the first occurrence in the wide-character
19       string wcs of a wide-character  not  contained  in  the  wide-character
20       string accept.
21

RETURN VALUE

23       The  wcsspn()  function  returns  the  number of wide characters in the
24       longest initial segment of wcs which consists entirely of  wide-charac‐
25       ters  listed in accept.  In other words, it returns the position of the
26       first occurrence in the wide-character string wcs of  a  wide-character
27       not  contained  in  the wide-character string accept, or wcslen(wcs) if
28       there is none.
29

ATTRIBUTES

31       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
32       tributes(7).
33
34       ┌──────────┬───────────────┬─────────┐
35Interface Attribute     Value   
36       ├──────────┼───────────────┼─────────┤
37wcsspn()  │ Thread safety │ MT-Safe │
38       └──────────┴───────────────┴─────────┘

CONFORMING TO

40       POSIX.1-2001, POSIX.1-2008, C99.
41

SEE ALSO

43       strspn(3), wcscspn(3)
44

COLOPHON

46       This  page  is  part of release 5.10 of the Linux man-pages project.  A
47       description of the project, information about reporting bugs,  and  the
48       latest     version     of     this    page,    can    be    found    at
49       https://www.kernel.org/doc/man-pages/.
50
51
52
53GNU                               2015-08-08                         WCSSPN(3)
Impressum