1WCSSPN(3) Linux Programmer's Manual WCSSPN(3)
2
3
4
6 wcsspn - advance in a wide-character string, skipping any of a set of
7 wide characters
8
10 #include <wchar.h>
11
12 wcsspn(const wchar_t *wcs, const wchar_t *accept);
13
15 The wcsspn() function is the wide-character equivalent of the strspn()
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
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
31 C99.
32
34 strspn(3), wcscspn(3)
35
36
37
38GNU 1999-07-25 WCSSPN(3)