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