Unlike isdigit, IsDigit can safely be applied to 'char's.
Arguments to isdigit needs a character cast to 'unsigned char' or EOF.
switch (*c)
{
case 3:
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
{
c++;
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
c++;
- if(c[1] == ',' && isdigit(c[2]))
+ if(c[1] == ',' && IsDigit(c[2]))
{
c += 2;
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
c++;
}
}
switch (*c)
{
case 3:
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
{
c++;
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
c++;
- if(c[1] == ',' && isdigit(c[2]))
+ if(c[1] == ',' && IsDigit(c[2]))
{
c += 2;
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
c++;
}
}