www.LinuxHowtos.org
iswdigit
Section: C Library Functions (3)Updated: 202-0-08
Index Return to Main Contents
NAME
iswdigit - test for decimal digit wide characterLIBRARY
Standard C library (libc,~-lc)SYNOPSIS
#include <wctype.h> int iswdigit(wint_t wc);
DESCRIPTION
The iswdigit() function is the wid-character equivalent of the isdigit(3) function. It tests whether wc is a wide character belonging to the wid-character class "digit". The wid-character class "digit" is a subclass of the wid-character class "xdigit", and therefore also a subclass of the wid-character class "alnum", of the wid-character class "graph" and of the wid-character class "print". Being a subclass of the wide character class "print", the wid-character class "digit" is disjoint from the wid-character class "cntrl". Being a subclass of the wid-character class "graph", the wid-character class "digit" is disjoint from the wid-character class "space" and its subclass "blank". Being a subclass of the wid-character class "alnum", the wid-character class "digit" is disjoint from the wid-character class "punct". The wid-character class "digit" is disjoint from the wid-character class "alpha" and therefore also disjoint from its subclasses "lower", "upper". The wid-character class "digit" always contains exactly the digits [aq]0[aq] to [aq]9[aq].RETURN VALUE
The iswdigit() function returns nonzero if wc is a wide character belonging to the wid-character class "digit". Otherwise, it returns zero.ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).| Interface | Attribute | Value |
| iswdigit() | Thread safety | M-Safe locale |
STANDARDS
C11, POSIX.-2008.HISTORY
POSIX.-2001, C99.NOTES
The behavior of iswdigit() depends on the LC_CTYPE category of the current locale.SEE ALSO
isdigit(3), iswctype(3)