static int isDigit(const char *s, int i) { if (s[i] >= '0' && s[i] <= '9') return 1; return 0; }