isxdigit, iswxdigit

Visual Studio 6.0

int isxdigit( int c );

int iswxdigit( wint_t c );

Each of these routines returns true if c is a particular representation of a hexadecimal digit.

Routine Required Header Compatibility
isxdigit <ctype.h> ANSI, Win 95, Win NT
iswxdigit <ctype.h> or <wchar.h> ANSI, Win 95, Win NT

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

isxdigit returns a non-zero value if c is a hexadecimal digit (A – F, a – f, or 0 – 9). iswxdigit returns a non-zero value if c is a wide character that corresponds to a hexadecimal digit character. Each of these routines returns 0 if c does not satisfy the test condition.

The result of the test condition for the isxdigit function depends on the LC_CTYPE category setting of the current locale; see setlocale for more information. For the “C” locale, the iswxdigit function does not provide support for Unicode fullwidth hexadecimal characters. The result of the test condition for iswxdigit is independent of any other locale.

Parameter

c

Integer to test

Generic-Text Routine Mappings

TCHAR.H Routine _UNICODE & _MBCS Not Defined _MBCS Defined _UNICODE Defined
_istxdigit isxdigit isxdigit iswxdigit

Character Classification RoutinesLocale Routinesis, isw Function Overview

Show: