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