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

NAME

6       iswdigit - test for decimal digit wide character
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

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

DESCRIPTION

17       The  iswdigit()  function  is  the wide-character equivalent of the is‐
18       digit(3) function.  It tests whether wc is a wide  character  belonging
19       to the wide-character class "digit".
20
21       The  wide-character  class  "digit" is a subclass of the wide-character
22       class "xdigit", and therefore also a  subclass  of  the  wide-character
23       class  "alnum",  of  the  wide-character class "graph" and of the wide-
24       character class "print".
25
26       Being a subclass of the wide character class "print", the  wide-charac‐
27       ter class "digit" is disjoint from the wide-character class "cntrl".
28
29       Being  a subclass of the wide-character class "graph", the wide-charac‐
30       ter class "digit" is disjoint from the wide-character class "space" and
31       its subclass "blank".
32
33       Being  a subclass of the wide-character class "alnum", the wide-charac‐
34       ter class "digit" is disjoint from the wide-character class "punct".
35
36       The wide-character class "digit" is disjoint  from  the  wide-character
37       class  "alpha" and therefore also disjoint from its subclasses "lower",
38       "upper".
39
40       The wide-character class "digit" always contains exactly the digits '0'
41       to '9'.
42

RETURN VALUE

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

ATTRIBUTES

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

STANDARDS

59       C11, POSIX.1-2008.
60

HISTORY

62       POSIX.1-2001, C99.
63

NOTES

65       The behavior of iswdigit() depends on  the  LC_CTYPE  category  of  the
66       current locale.
67

SEE ALSO

69       isdigit(3), iswctype(3)
70
71
72
73Linux man-pages 6.05              2023-07-20                       iswdigit(3)
Impressum