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
27 belonging to the wide-character class "cntrl". Otherwise, it returns
28 zero.
29
31 For an explanation of the terms used in this section, see
32 attributes(7).
33
34 ┌───────────┬───────────────┬────────────────┐
35 │Interface │ Attribute │ Value │
36 ├───────────┼───────────────┼────────────────┤
37 │iswcntrl() │ Thread safety │ MT-Safe locale │
38 └───────────┴───────────────┴────────────────┘
40 POSIX.1-2001, POSIX.1-2008, C99.
41
43 The behavior of iswcntrl() depends on the LC_CTYPE category of the cur‐
44 rent locale.
45
47 iscntrl(3), iswctype(3)
48
50 This page is part of release 5.07 of the Linux man-pages project. A
51 description of the project, information about reporting bugs, and the
52 latest version of this page, can be found at
53 https://www.kernel.org/doc/man-pages/.
54
55
56
57GNU 2015-08-08 ISWCNTRL(3)