isxdigit


Identification of hexadecimal number

[Classification]

Standard library

[Syntax]

#include <ctype.h>

int isxdigit(int c);

[Return value]

These macros return a value other than 0 if the value of argument c matches the respective description (i.e., if the result is true). If the result is false, 0 is returned.

[Description]

This function is a macro that checks whether a given character is a hexadecimal number (0 to 9, a to f, or A to F). This macro is defined only when c is made true by isascii or when c is EOF. A compiled subroutine can be used instead of the macro definition, which is invalidated by using "#undef isxdigit".