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

NAME

6       iswalpha - test for alphabetic wide character
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

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

DESCRIPTION

17       The  iswalpha()  function is the wide-character equivalent of the isal‐
18       pha(3) function.  It tests whether wc is a wide character belonging  to
19       the wide-character class "alpha".
20
21       The  wide-character  class  "alpha" is a subclass of the wide-character
22       class "alnum", and therefore also  a  subclass  of  the  wide-character
23       class "graph" and of the wide-character class "print".
24
25       Being  a subclass of the wide-character class "print", the wide-charac‐
26       ter class "alpha" 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 "alpha" is disjoint from the wide-character class "space" and
30       its subclass "blank".
31
32       Being a subclass of the wide-character class "alnum", the  wide-charac‐
33       ter class "alpha" is disjoint from the wide-character class "punct".
34
35       The  wide-character  class  "alpha" is disjoint from the wide-character
36       class "digit".
37
38       The wide-character class "alpha" contains  the  wide-character  classes
39       "upper" and "lower".
40
41       The  wide-character  class "alpha" always contains at least the letters
42       'A' to 'Z' and 'a' to 'z'.
43

RETURN VALUE

45       The iswalpha() function returns nonzero if wc is a wide  character  be‐
46       longing  to  the  wide-character  class "alpha".  Otherwise, it returns
47       zero.
48

ATTRIBUTES

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

STANDARDS

60       C11, POSIX.1-2008.
61

HISTORY

63       POSIX.1-2001, C99.
64

NOTES

66       The  behavior  of  iswalpha()  depends  on the LC_CTYPE category of the
67       current locale.
68

SEE ALSO

70       isalpha(3), iswctype(3)
71
72
73
74Linux man-pages 6.05              2023-07-20                       iswalpha(3)
Impressum