xdigit
Xdigit is a term used in computing to denote a hexadecimal digit. A hexadecimal digit is any character that represents a value in base-16: the decimal digits 0 through 9 and the letters A through F (in either upper or lower case). In practice, xdigit is used when parsing, validating, or formatting hexadecimal numbers, color codes, and other data that employ base-16 notation.
In the C standard library, the function isxdigit checks whether a given character is a hexadecimal digit.
In POSIX and many regular-expression implementations, hexadecimal digits are represented by the character class [:xdigit:] or
Examples: isxdigit('3') is true; isxdigit('A') is true; isxdigit('g') is false. For color codes such as #RRGGBB, xdigits
See also: isdigit, isalpha, isalnum, ctype.h, [:xdigit:], regular-expression digit classes.