1 2 3 4 5 6
#include <ctype.h> int isxdigit(int c) { return isdigit(c) || ((unsigned)c|32)-'a' < 6; }