Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)
1st Parameter
The character to be tested, passed as an `int`. It must be representable as an `unsigned char` or be the value of EOF.
Read more about parameters of isxdigit in parameters section
The isxdigitfunction in C language Checks whether the character is a hexadecimal digit.
The isxdigit function tests whether c is a hexadecimal digit character (0-9, a-f, A-F). This function is locale-independent.
The isxdigitfunction takes 1
parameter:
•
int `c`: The character to be tested, passed as an `int`. It must be representable as an `unsigned char` or be the value of EOF.
Checks if the given character `c` is a hexadecimal digit (0-9, A-F, a-f). Returns a nonzero value if `c` is a hexadecimal digit, and `0` otherwise. The behavior is undefined if `c` is not representable as an `unsigned char` or is not EOF.
The isxdigit function return value :
Returns non-zero if the character is a hexadecimal digit, 0 otherwise
Output
This example demonstrates basic usage of isxdigit with various characters.