isDigit check allowing decimal point

So I am doing my isDigit check as follows but I want to accept a decimal point in the digit check.

bool isint(char c[])
{
bool interr = 0;
unsigned i = 1;
for (i=0; i<strlen(c); i++)
{
interr = interr || !(isdigit(c[i]));
if (c[i] == ".")
interr = 0;
}
return !interr;
}

It doesnt like the 'if (c[i] == ".")' statement. Any suggestions on how I can ignore a decimal point and accept it as a float?
"." is a string. c[i] is a char. Use ' ' instead of " ".
LOL wow. Thanks! works fine now! :)
Topic archived. No new replies allowed.