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  at‐
32       tributes(7).
33
34       ┌────────────────────────────────────────────┬───────────────┬─────────┐
35Interface                                   Attribute     Value   
36       ├────────────────────────────────────────────┼───────────────┼─────────┤
37wcscspn()                                   │ Thread safety │ MT-Safe │
38       └────────────────────────────────────────────┴───────────────┴─────────┘
39

CONFORMING TO

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

SEE ALSO

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

COLOPHON

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