README: Update links
[man-pages.git] / man3 / iswdigit.3
blob60a088b871d4c419c3c68a6804f8e4d3f7b0301a
1 '\" t
2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\"
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\"
6 .\" References consulted:
7 .\"   GNU glibc-2 source code and manual
8 .\"   Dinkumware C library reference http://www.dinkumware.com/
9 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
10 .\"   ISO/IEC 9899:1999
11 .\"
12 .TH iswdigit 3 (date) "Linux man-pages (unreleased)"
13 .SH NAME
14 iswdigit \- test for decimal digit wide character
15 .SH LIBRARY
16 Standard C library
17 .RI ( libc ", " \-lc )
18 .SH SYNOPSIS
19 .nf
20 .B #include <wctype.h>
22 .BI "int iswdigit(wint_t " wc );
23 .fi
24 .SH DESCRIPTION
25 The
26 .BR iswdigit ()
27 function is the wide-character equivalent of the
28 .BR isdigit (3)
29 function.
30 It tests whether
31 .I wc
32 is a wide character
33 belonging to the wide-character class "digit".
35 The wide-character class "digit" is a subclass of the wide-character class
36 "xdigit", and therefore also a subclass
37 of the wide-character class "alnum", of
38 the wide-character class "graph" and of the wide-character class "print".
40 Being a subclass of the wide character
41 class "print", the wide-character class
42 "digit" is disjoint from the wide-character class "cntrl".
44 Being a subclass of the wide-character class "graph",
45 the wide-character class
46 "digit" is disjoint from the wide-character class "space" and its subclass
47 "blank".
49 Being a subclass of the wide-character
50 class "alnum", the wide-character class
51 "digit" is disjoint from the wide-character class "punct".
53 The wide-character class "digit" is
54 disjoint from the wide-character class
55 "alpha" and therefore also disjoint from its subclasses "lower", "upper".
57 The wide-character class "digit" always
58 contains exactly the digits \[aq]0\[aq] to \[aq]9\[aq].
59 .SH RETURN VALUE
60 The
61 .BR iswdigit ()
62 function returns nonzero
64 .I wc
65 is a wide character
66 belonging to the wide-character class "digit".
67 Otherwise, it returns zero.
68 .SH ATTRIBUTES
69 For an explanation of the terms used in this section, see
70 .BR attributes (7).
71 .TS
72 allbox;
73 lbx lb lb
74 l l l.
75 Interface       Attribute       Value
77 .na
78 .nh
79 .BR iswdigit ()
80 T}      Thread safety   MT-Safe locale
81 .TE
82 .SH STANDARDS
83 C11, POSIX.1-2008.
84 .SH HISTORY
85 POSIX.1-2001, C99.
86 .SH NOTES
87 The behavior of
88 .BR iswdigit ()
89 depends on the
90 .B LC_CTYPE
91 category of the
92 current locale.
93 .SH SEE ALSO
94 .BR isdigit (3),
95 .BR iswctype (3)