| 1 |
'\" t |
| 2 |
.\" Copyright, Bruno Haible <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
.\" |
| 7 |
.TH iswctype 3 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
iswctype \- wide-character classification |
| 10 |
.SH LIBRARY |
| 11 |
Standard C library |
| 12 |
.RI ( libc ,\~ \-lc ) |
| 13 |
.SH SYNOPSIS |
| 14 |
.nf |
| 15 |
.B #include <wctype.h> |
| 16 |
.P |
| 17 |
.BI "int iswctype(wint_t " wc ", wctype_t " desc ); |
| 18 |
.fi |
| 19 |
.SH DESCRIPTION |
| 20 |
If |
| 21 |
.I wc |
| 22 |
is a wide character having the character property designated by |
| 23 |
.I desc |
| 24 |
(or in other words: belongs to the character class designated by |
| 25 |
.IR desc ), |
| 26 |
then the |
| 27 |
.BR iswctype () |
| 28 |
function returns nonzero. |
| 29 |
Otherwise, it |
| 30 |
returns zero. |
| 31 |
If |
| 32 |
.I wc |
| 33 |
is |
| 34 |
.BR WEOF , |
| 35 |
zero is returned. |
| 36 |
.P |
| 37 |
.I desc |
| 38 |
must be a character property descriptor |
| 39 |
returned by the |
| 40 |
.BR wctype (3) |
| 41 |
function. |
| 42 |
.SH RETURN VALUE |
| 43 |
The |
| 44 |
.BR iswctype () |
| 45 |
function returns nonzero if |
| 46 |
the |
| 47 |
.I wc |
| 48 |
has the designated |
| 49 |
property. |
| 50 |
Otherwise, it returns 0. |
| 51 |
.SH ATTRIBUTES |
| 52 |
For an explanation of the terms used in this section, see |
| 53 |
.BR attributes (7). |
| 54 |
.TS |
| 55 |
allbox; |
| 56 |
lbx lb lb |
| 57 |
l l l. |
| 58 |
Interface Attribute Value |
| 59 |
T{ |
| 60 |
.na |
| 61 |
.nh |
| 62 |
.BR iswctype () |
| 63 |
T} Thread safety MT-Safe |
| 64 |
.TE |
| 65 |
.SH STANDARDS |
| 66 |
C11, POSIX.1-2008. |
| 67 |
.SH HISTORY |
| 68 |
POSIX.1-2001, C99. |
| 69 |
.SH NOTES |
| 70 |
The behavior of |
| 71 |
.BR iswctype () |
| 72 |
depends on the |
| 73 |
.B LC_CTYPE |
| 74 |
category of the |
| 75 |
current locale. |
| 76 |
.SH SEE ALSO |
| 77 |
.BR iswalnum (3), |
| 78 |
.BR iswalpha (3), |
| 79 |
.BR iswblank (3), |
| 80 |
.BR iswcntrl (3), |
| 81 |
.BR iswdigit (3), |
| 82 |
.BR iswgraph (3), |
| 83 |
.BR iswlower (3), |
| 84 |
.BR iswprint (3), |
| 85 |
.BR iswpunct (3), |
| 86 |
.BR iswspace (3), |
| 87 |
.BR iswupper (3), |
| 88 |
.BR iswxdigit (3), |
| 89 |
.BR wctype (3) |