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

NAME

6       iswalnum - test for alphanumeric wide character
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

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

DESCRIPTION

17       The  iswalnum()  function is the wide-character equivalent of the isal‐
18       num(3) function.  It tests whether wc is a wide character belonging  to
19       the wide-character class "alnum".
20
21       The  wide-character  class  "alnum" is a subclass of the wide-character
22       class "graph", and therefore also  a  subclass  of  the  wide-character
23       class "print".
24
25       Being  a subclass of the wide-character class "print", the wide-charac‐
26       ter class "alnum" is disjoint from the wide-character class "cntrl".
27
28       Being a subclass of the wide-character class "graph", the  wide-charac‐
29       ter class "alnum" is disjoint from the wide-character class "space" and
30       its subclass "blank".
31
32       The wide-character class "alnum" is disjoint  from  the  wide-character
33       class "punct".
34
35       The  wide-character  class  "alnum"  is the union of the wide-character
36       classes "alpha" and "digit".  As such, it also contains the  wide-char‐
37       acter class "xdigit".
38
39       The  wide-character  class "alnum" always contains at least the letters
40       'A' to 'Z', 'a' to 'z', and the digits '0' to '9'.
41

RETURN VALUE

43       The iswalnum() function returns nonzero if wc is a wide  character  be‐
44       longing  to  the  wide-character  class "alnum".  Otherwise, it returns
45       zero.
46

ATTRIBUTES

48       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
49       tributes(7).
50
51       ┌─────────────────────────────────────┬───────────────┬────────────────┐
52Interface                            Attribute     Value          
53       ├─────────────────────────────────────┼───────────────┼────────────────┤
54iswalnum()                           │ Thread safety │ MT-Safe locale │
55       └─────────────────────────────────────┴───────────────┴────────────────┘
56

STANDARDS

58       C11, POSIX.1-2008.
59

HISTORY

61       POSIX.1-2001, C99.
62

NOTES

64       The behavior of iswalnum() depends on the LC_CTYPE category of the cur‐
65       rent locale.
66

SEE ALSO

68       isalnum(3), iswctype(3)
69
70
71
72Linux man-pages 6.04              2023-03-30                       iswalnum(3)
Impressum