Clean what up? If you don't like a function name, define your own.
#define TakeOutTheTrash delete
In fact, here's my offering to all:
a small data type validation library.
Expand at your own leisure...
Code:
int IsFloat(char *s)
{
int bad = -1;
for(i = 0; i < strlen(s); i++)
{
if(!isdigit(s[i]) && s[i] != '.')
return 0;
if(s[i] == '.')
bad++;
}
if(bad)
return 0;
return 1;
}
//_________
int IsInt(char *s)
{
while(*s)
{
if(!isdigit(*s++))
return 0;
}
return 1;
}
//_________
IsWord(char *s)
{
while(*s)
!isalpha(*s) ? return 0 : *s++;
return 1;
}
But how many textual digits were encountered? 10? 88? It makes a difference! So you should try to make that improvement first.