]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
89e3ffe9 | 3 | .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) |
fea681da MK |
4 | .\" This is free documentation; you can redistribute it and/or |
5 | .\" modify it under the terms of the GNU General Public License as | |
6 | .\" published by the Free Software Foundation; either version 2 of | |
7 | .\" the License, or (at your option) any later version. | |
fe382ebf | 8 | .\" %%%LICENSE_END |
fea681da MK |
9 | .\" |
10 | .\" References consulted: | |
11 | .\" GNU glibc-2 source code and manual | |
12 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 13 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
14 | .\" ISO/IEC 9899:1999 |
15 | .\" | |
460495ca | 16 | .TH WCSCSPN 3 2015-08-08 "GNU" "Linux Programmer's Manual" |
fea681da MK |
17 | .SH NAME |
18 | wcscspn \- search a wide-character string for any of a set of wide characters | |
19 | .SH SYNOPSIS | |
20 | .nf | |
21 | .B #include <wchar.h> | |
68e4db0a | 22 | .PP |
fea681da MK |
23 | .BI "size_t wcscspn(const wchar_t *" wcs ", const wchar_t *" reject ); |
24 | .fi | |
25 | .SH DESCRIPTION | |
60a90ecd MK |
26 | The |
27 | .BR wcscspn () | |
28 | function is the wide-character equivalent | |
29 | of the | |
30 | .BR strcspn (3) | |
31 | function. | |
35cfd378 MK |
32 | It determines the length of the longest initial segment of |
33 | .I wcs | |
34 | which consists entirely of wide-characters not listed in | |
35 | .IR reject . | |
c13182ef | 36 | In |
fea681da | 37 | other words, it searches for the first occurrence in the wide-character |
35cfd378 MK |
38 | string |
39 | .I wcs | |
40 | of any of the characters in the wide-character string | |
41 | .IR reject . | |
47297adb | 42 | .SH RETURN VALUE |
60a90ecd MK |
43 | The |
44 | .BR wcscspn () | |
45 | function returns the number of | |
c13182ef | 46 | wide characters in the longest |
35cfd378 MK |
47 | initial segment of |
48 | .I wcs | |
49 | which consists entirely of wide-characters not | |
50 | listed in | |
51 | .IR reject . | |
c13182ef | 52 | In other words, it returns the position of the first |
35cfd378 MK |
53 | occurrence in the wide-character string |
54 | .I wcs | |
c13182ef | 55 | of any of the characters in |
35cfd378 MK |
56 | the wide-character string |
57 | .IR reject , | |
58 | or | |
59 | .IR wcslen(wcs) | |
60 | if there is none. | |
d32f1802 | 61 | .SH ATTRIBUTES |
e49c66cb PH |
62 | For an explanation of the terms used in this section, see |
63 | .BR attributes (7). | |
64 | .TS | |
65 | allbox; | |
66 | lb lb lb | |
67 | l l l. | |
68 | Interface Attribute Value | |
69 | T{ | |
d32f1802 | 70 | .BR wcscspn () |
e49c66cb PH |
71 | T} Thread safety MT-Safe |
72 | .TE | |
47297adb | 73 | .SH CONFORMING TO |
e4c0766a | 74 | POSIX.1-2001, POSIX.1-2008, C99. |
47297adb | 75 | .SH SEE ALSO |
fea681da MK |
76 | .BR strcspn (3), |
77 | .BR wcspbrk (3), | |
78 | .BR wcsspn (3) |