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 size_t wcsspn(const wchar_t *wcs, const wchar_t *accept);
13
15 The wcsspn() function is the wide-character equivalent of the strspn(3)
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 For an explanation of the terms used in this section, see at‐
32 tributes(7).
33
34 ┌────────────────────────────────────────────┬───────────────┬─────────┐
35 │Interface │ Attribute │ Value │
36 ├────────────────────────────────────────────┼───────────────┼─────────┤
37 │wcsspn() │ Thread safety │ MT-Safe │
38 └────────────────────────────────────────────┴───────────────┴─────────┘
39
41 POSIX.1-2001, POSIX.1-2008, C99.
42
44 strspn(3), wcscspn(3)
45
47 This page is part of release 5.12 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 WCSSPN(3)