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()
Get C in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.