]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
e4a74ca8 | 3 | .\" SPDX-License-Identifier: GPL-2.0-or-later |
fea681da MK |
4 | .\" |
5 | .\" References consulted: | |
6 | .\" GNU glibc-2 source code and manual | |
7 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 8 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
9 | .\" ISO/IEC 9899:1999 |
10 | .\" | |
ab47278f | 11 | .TH WCSCSPN 3 (date) "Linux man-pages (unreleased)" |
fea681da MK |
12 | .SH NAME |
13 | wcscspn \- search a wide-character string for any of a set of wide characters | |
883aa89b AC |
14 | .SH LIBRARY |
15 | Standard C library | |
8fc3b2cf | 16 | .RI ( libc ", " \-lc ) |
fea681da MK |
17 | .SH SYNOPSIS |
18 | .nf | |
19 | .B #include <wchar.h> | |
68e4db0a | 20 | .PP |
fea681da MK |
21 | .BI "size_t wcscspn(const wchar_t *" wcs ", const wchar_t *" reject ); |
22 | .fi | |
23 | .SH DESCRIPTION | |
60a90ecd MK |
24 | The |
25 | .BR wcscspn () | |
26 | function is the wide-character equivalent | |
27 | of the | |
28 | .BR strcspn (3) | |
29 | function. | |
35cfd378 MK |
30 | It determines the length of the longest initial segment of |
31 | .I wcs | |
32 | which consists entirely of wide-characters not listed in | |
33 | .IR reject . | |
c13182ef | 34 | In |
fea681da | 35 | other words, it searches for the first occurrence in the wide-character |
35cfd378 MK |
36 | string |
37 | .I wcs | |
38 | of any of the characters in the wide-character string | |
39 | .IR reject . | |
47297adb | 40 | .SH RETURN VALUE |
60a90ecd MK |
41 | The |
42 | .BR wcscspn () | |
43 | function returns the number of | |
c13182ef | 44 | wide characters in the longest |
35cfd378 MK |
45 | initial segment of |
46 | .I wcs | |
47 | which consists entirely of wide-characters not | |
48 | listed in | |
49 | .IR reject . | |
c13182ef | 50 | In other words, it returns the position of the first |
35cfd378 MK |
51 | occurrence in the wide-character string |
52 | .I wcs | |
c13182ef | 53 | of any of the characters in |
35cfd378 MK |
54 | the wide-character string |
55 | .IR reject , | |
56 | or | |
1ae6b2c7 | 57 | .I wcslen(wcs) |
35cfd378 | 58 | if there is none. |
d32f1802 | 59 | .SH ATTRIBUTES |
e49c66cb PH |
60 | For an explanation of the terms used in this section, see |
61 | .BR attributes (7). | |
c466875e MK |
62 | .ad l |
63 | .nh | |
e49c66cb PH |
64 | .TS |
65 | allbox; | |
c466875e | 66 | lbx lb lb |
e49c66cb PH |
67 | l l l. |
68 | Interface Attribute Value | |
69 | T{ | |
d32f1802 | 70 | .BR wcscspn () |
e49c66cb PH |
71 | T} Thread safety MT-Safe |
72 | .TE | |
c466875e MK |
73 | .hy |
74 | .ad | |
75 | .sp 1 | |
3113c7f3 | 76 | .SH STANDARDS |
e4c0766a | 77 | POSIX.1-2001, POSIX.1-2008, C99. |
47297adb | 78 | .SH SEE ALSO |
fea681da MK |
79 | .BR strcspn (3), |
80 | .BR wcspbrk (3), | |
81 | .BR wcsspn (3) |