Name
iswdigit
Synopsis
Ascertains whether a given wide character is a decimal digit
#include <wctype.h> intiswdigit( wint_twc);
The iswdigit() function is
the wide-character version of the isdigit() character classification
function. It tests whether its wide character argument corresponds
to a digit character.
The digit wide characters are L'0' (not to be confused with the null
character L'\0') through L'9'. The iswdigit() function returns a nonzero
value (that is, true) if the wide
character represents a digit; if not, it returns 0 (false).
Example
See the example for iswalpha() in this
chapter.
See Also
The corresponding function for byte characters, isdigit(); iswalnum(), iswalpha(), iswblank(), iswcntrl(), iswgraph(), iswlower(), iswprint(), iswpunct(), iswspace(), iswupper(), iswxdigit(), setlocale(); the
extensible wide-character classification function, iswctype()
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access