]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/iswctype.3
b3bb6a15a6681e40012e8609d0d8cdada85ecd4d
[thirdparty/man-pages.git] / man3 / iswctype.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
4 .\"
5 .\" References consulted:
6 .\" GNU glibc-2 source code and manual
7 .\" Dinkumware C library reference http://www.dinkumware.com/
8 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
9 .\" ISO/IEC 9899:1999
10 .\"
11 .TH ISWCTYPE 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
12 .SH NAME
13 iswctype \- wide-character classification
14 .SH LIBRARY
15 Standard C library
16 .RI ( libc ", " \-lc )
17 .SH SYNOPSIS
18 .nf
19 .B #include <wctype.h>
20 .PP
21 .BI "int iswctype(wint_t " wc ", wctype_t " desc );
22 .fi
23 .SH DESCRIPTION
24 If
25 .I wc
26 is a wide character having the character property designated by
27 .I desc
28 (or in other words: belongs to the character class designated by
29 .IR desc ),
30 the
31 .BR iswctype ()
32 function returns nonzero.
33 Otherwise, it
34 returns zero.
35 If
36 .I wc
37 is
38 .BR WEOF ,
39 zero is returned.
40 .PP
41 .I desc
42 must be a character property descriptor
43 returned by the
44 .BR wctype (3)
45 function.
46 .SH RETURN VALUE
47 The
48 .BR iswctype ()
49 function returns nonzero if
50 the
51 .I wc
52 has the designated
53 property.
54 Otherwise, it returns 0.
55 .SH ATTRIBUTES
56 For an explanation of the terms used in this section, see
57 .BR attributes (7).
58 .ad l
59 .nh
60 .TS
61 allbox;
62 lbx lb lb
63 l l l.
64 Interface Attribute Value
65 T{
66 .BR iswctype ()
67 T} Thread safety MT-Safe
68 .TE
69 .hy
70 .ad
71 .sp 1
72 .SH STANDARDS
73 POSIX.1-2001, POSIX.1-2008, C99.
74 .SH NOTES
75 The behavior of
76 .BR iswctype ()
77 depends on the
78 .B LC_CTYPE
79 category of the
80 current locale.
81 .SH SEE ALSO
82 .BR iswalnum (3),
83 .BR iswalpha (3),
84 .BR iswblank (3),
85 .BR iswcntrl (3),
86 .BR iswdigit (3),
87 .BR iswgraph (3),
88 .BR iswlower (3),
89 .BR iswprint (3),
90 .BR iswpunct (3),
91 .BR iswspace (3),
92 .BR iswupper (3),
93 .BR iswxdigit (3),
94 .BR wctype (3)