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