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

CONFORMING TO

31       C99.
32

SEE ALSO

34       strcspn(3), wcspbrk(3), wcsspn(3)
35

COLOPHON

37       This page is part of release 3.53 of the Linux  man-pages  project.   A
38       description  of  the project, and information about reporting bugs, can
39       be found at http://www.kernel.org/doc/man-pages/.
40
41
42
43GNU                               1999-07-25                        WCSCSPN(3)
Impressum