Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

iswxdigit()

Test a wide character to see if it's a hexadecimal digit

Synopsis:

#include <wctype.h>

int iswxdigit( wint_t wc );

Arguments:

wc
The wide character you want to test.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The iswxdigit() function tests if the argument wc is a hexadecimal wide character of the class xdigit. In the C locale, this class includes the characters 0 to 9, and A to F.

Returns:

A nonzero value if the character is a member of the class xdigit, or 0 otherwise.

Classification:

ANSI, POSIX 1003.1

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

Caveats:

The result is valid only for wchar_t arguments and WEOF.

See also:

setlocale()

"Character manipulation functions" and "Wide-character functions" in the summary of functions chapter.