Name
iswxdigit
Synopsis
Ascertains whether a given wide character is a hexadecimal digit
#include <wctype.h> intiswxdigit
( wint_twc
);
The iswxdigit()
function is
the wide-character version of the isxdigit()
character classification
function. It tests whether its character argument is a hexadecimal
digit, and returns a nonzero value (that is, true
) if the character is one of the
digits between L'0'
and L'9'
inclusive, or a letter from L'A'
through L'F'
or from L'a'
through L'f'
inclusive. If not, the function
returns 0 (false
).
Example
See the example for iswalpha()
in this
chapter.
See Also
iswdigit()
; the
corresponding functions for byte characters, isdigit()
and isxdigit()
; iswalnum()
, iswalpha()
, iswblank()
, iswcntrl()
, iswgraph()
, iswlower()
, iswprint()
, iswpunct()
, iswspace()
, iswupper()
, 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.