1ISWCNTRL(3) Linux Programmer's Manual ISWCNTRL(3)
2
3
4
6 iswcntrl - test for control wide character
7
9 #include <wctype.h>
10
11 int iswcntrl(wint_t wc);
12
14 The iswcntrl() function is the wide-character equivalent of the iscn‐
15 trl(3) function. It tests whether wc is a wide character belonging to
16 the wide-character class "cntrl".
17
18 The wide-character class "cntrl" is disjoint from the wide-character
19 class "print" and therefore also disjoint from its subclasses "graph",
20 "alpha", "upper", "lower", "digit", "xdigit", "punct".
21
22 For an unsigned char c, iscntrl(c) implies iswcntrl(btowc(c)), but not
23 vice versa.
24
26 The iswcntrl() function returns nonzero if wc is a wide character be‐
27 longing to the wide-character class "cntrl". Otherwise, it returns
28 zero.
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 │iswcntrl() │ Thread safety │ MT-Safe locale │
38 └─────────────────────────────────────┴───────────────┴────────────────┘
39
41 POSIX.1-2001, POSIX.1-2008, C99.
42
44 The behavior of iswcntrl() depends on the LC_CTYPE category of the cur‐
45 rent locale.
46
48 iscntrl(3), iswctype(3)
49
51 This page is part of release 5.13 of the Linux man-pages project. A
52 description of the project, information about reporting bugs, and the
53 latest version of this page, can be found at
54 https://www.kernel.org/doc/man-pages/.
55
56
57
58GNU 2021-03-22 ISWCNTRL(3)