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

NAME

6       wcscspn - search a wide-character string for any of a set of wide char‐
7       acters
8

SYNOPSIS

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

DESCRIPTION

15       The wcscspn() function is the wide-character equivalent  of  the  strc‐
16       spn(3)  function.  It determines the length of the longest initial seg‐
17       ment of wcs which consists entirely of wide-characters  not  listed  in
18       reject.   In  other  words, it searches for the first occurrence in the
19       wide-character string wcs of any of the characters in the  wide-charac‐
20       ter string reject.
21

RETURN VALUE

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

ATTRIBUTES

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

CONFORMING TO

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

SEE ALSO

43       strcspn(3), wcspbrk(3), wcsspn(3)
44

COLOPHON

46       This  page  is  part of release 4.15 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                        WCSCSPN(3)
Impressum