Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
isxdigit.c File Reference
#include <ctype.h>
Include dependency graph for isxdigit.c:

Go to the source code of this file.

Functions

int isxdigit (int c)
 Checks if the given character is a hexadecimal numeric character. More...
 

Function Documentation

◆ isxdigit()

int isxdigit ( int  ch)

Checks if the given character is a hexadecimal numeric character.

Checks if the given character is a hexadecimal numeric character (0123456789).

The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.

Parameters
chThe character to classify
Returns
Non-zero value if the character is an hexadecimal numeric character, zero otherwise.

Definition at line 5 of file isxdigit.c.

6 {
7  return isdigit(c) || ((unsigned)c | 32) - 'a' < 6;
8 }
int isdigit(int ch)
Checks if the given character is a numeric character.
Definition: isdigit.c:5

References isdigit().