Determine whether this character is a hex digit.
This function determines whether a given character is a hexadecimal digit (0-9, and A-F). The argument val represents the ASCII value for a character.
This function returns non-zero if the given character is alphabetical. Otherwise, it returns zero.
Example
int returni;
char string1[512];
sds_getstring(1,"\nEnter a hex digit (0-9 or A-F): ",string1);
returni=sds_isxdigit(string1[0]);
if (returni == 0)
sds_printf("\nThe character is NOT a hex digit. ");
else
sds_printf("\nThe character IS a hex digit. ");
Tell me about...
Programming Overview of SDS™ (Solutions Development System™)