As far as a faster isdigit if you can insure only ascii then #define isdigit(c) ((c^0x30)<10) may be faster since its using bitwise Xor instead of cast and subtraction Don Sparkman