I'm not entirely sure what you mean. You have a single character and want to see if it is one of 10 possible characters? This would work:
Code:
if(strchr("0123456789", your_char) != NULL) { /* it is 0 or 1 or .. 9 */ }
If you are, by chance, checking whether it is one of the digits from '0' to '9', you can use isdigit():
Code:
if(isdigit( (unsigned char)your_char )) { /* is a digit */ }
strchr() is prototyped in string.h, isdigit() in ctype.h. Unfortunately that cast to unsigned char is probably necessary, so it's not as clean as you might hope.