is it a hexadecimal digit
#include <ctype.h> #include <stdio.h> int main(void) { char ch; for(;;) { ch = getchar(); if(ch == '.') break; if(isxdigit(ch)) printf("%c is hexadecimal digit\n", ch); } return 0; }