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() function. It determines the length of the longest initial segment
17       of wcs which consists entirely of wide-characters not listed in reject.
18       In  other words, it searches for the first occurrence in the wide-char‐
19       acter string wcs of any of the characters in the wide-character  string
20       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
36
37
38GNU                               1999-07-25                        WCSCSPN(3)
Impressum