hi
have the following case want to check a string to see if is a valid number
can anyone spot whats wrong with the following if statement
char *ch
for (i = 0; i < strlen(ch); i++){
if ((ch[i] >= '0') && (ch[i] <= '9') && ( i < strlen(ch) ) || (ch[i] == '.') )
// It's a Number
have the following case want to check a string to see if is a valid number
can anyone spot whats wrong with the following if statement
char *ch
for (i = 0; i < strlen(ch); i++){
if ((ch[i] >= '0') && (ch[i] <= '9') && ( i < strlen(ch) ) || (ch[i] == '.') )
// It's a Number
Comment