*size = 0;
/* Skip initial whitespace */
- while (isspace(*ptr))
+ while (isspace((unsigned char) *ptr))
ptr++;
- if (isalpha(*ptr))
+ if (isalpha((unsigned char) *ptr))
{
result = ptr++;
- while (isalpha(*ptr) || *ptr == '_')
+ while (isalpha((unsigned char) *ptr) || *ptr == '_')
ptr++;
*size = ptr - result;
bool found_space = false;
/* Skip initial whitespace */
- while (isspace(*str))
+ while (isspace((unsigned char) *str))
str++;
if (*str == '\0')
while (*str && *str != '#')
{
- while (*str && !isspace(*str) && !strchr("#,.()\"", *str))
+ while (*str && !isspace((unsigned char) *str) && !strchr("#,.()\"", *str))
{
/*
* Append space only when it is allowed, and when it was found in
found_space = false;
/* skip ending whitespaces */
- while (isspace(*str))
+ while (isspace((unsigned char) *str))
{
found_space = true;
str++;
fstate->lineno++;
/* Skip initial white spaces */
- while (isspace(*str))
+ while (isspace((unsigned char) *str))
str++;
/*