1iswcntrl(3)                Library Functions Manual                iswcntrl(3)
2
3
4

NAME

6       iswcntrl - test for control wide character
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <wctype.h>
13
14       int iswcntrl(wint_t wc);
15

DESCRIPTION

17       The  iswcntrl()  function is the wide-character equivalent of the iscn‐
18       trl(3) function.  It tests whether wc is a wide character belonging  to
19       the wide-character class "cntrl".
20
21       The  wide-character  class  "cntrl" is disjoint from the wide-character
22       class "print" and therefore also disjoint from its subclasses  "graph",
23       "alpha", "upper", "lower", "digit", "xdigit", "punct".
24
25       For  an unsigned char c, iscntrl(c) implies iswcntrl(btowc(c)), but not
26       vice versa.
27

RETURN VALUE

29       The iswcntrl() function returns nonzero if wc is a wide  character  be‐
30       longing  to  the  wide-character  class "cntrl".  Otherwise, it returns
31       zero.
32

ATTRIBUTES

34       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
35       tributes(7).
36
37       ┌─────────────────────────────────────┬───────────────┬────────────────┐
38Interface                            Attribute     Value          
39       ├─────────────────────────────────────┼───────────────┼────────────────┤
40iswcntrl()                           │ Thread safety │ MT-Safe locale │
41       └─────────────────────────────────────┴───────────────┴────────────────┘
42

STANDARDS

44       C11, POSIX.1-2008.
45

HISTORY

47       POSIX.1-2001, C99.
48

NOTES

50       The behavior of iswcntrl() depends on the LC_CTYPE category of the cur‐
51       rent locale.
52

SEE ALSO

54       iscntrl(3), iswctype(3)
55
56
57
58Linux man-pages 6.04              2023-03-30                       iswcntrl(3)
Impressum