char *cursor = token;
char *number;
- while ((*cursor != '\0') &&
+ while (!IsEmptyStr(cursor) &&
(*cursor != '{'))
{
cursor++;
}
- if (*cursor == '\0')
+ if (IsEmptyStr(cursor))
return -1;
number = cursor + 1;
while ((*cursor != '\0') &&
if (cursor[-1] == '+')
cursor--;
- if (*cursor == '\0')
+ if (IsEmptyStr(cursor))
return -1;
return atol(number);