int hexchk(char *chr) {
int c;
while (*chr != '\0') { c=*chr++; //printf("%d,%c%x\r\n", c,c,c); //if (c == ' ') continue; //else if (c >= '0' && c <= '9') continue; //else if (c >= 'a' && c <= 'f') continue; //else if (c >= 'A' && c <= 'F') continue; if (c >= '0' && c <= '9') continue; else return 1; } return 0;
}