* Go forward until we hit a non-digit
*/
while ((p - str) <= len) {
- if (!isdigit(*p))
+ if (!isdigit((int) *p))
break;
p++;
}
- if (!isalpha(*p))
+ if (!isalpha((int) *p))
p = NULL;
return __get_mult_bytes(p, data);
{
char *s = *p;
- while (isspace(*s))
+ while (isspace((int) *s))
s++;
*p = s;
p = s;
s = p + strlen(p);
- while ((isspace(*s) || iscntrl(*s)) && (s > start))
+ while ((isspace((int) *s) || iscntrl((int) *s)) && (s > start))
s--;
*(s + 1) = '\0';