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