- /* kill leading whitespace */
- buf += strspn(buf, sep);
-
- /* locate first non-quoted ';', ignore anything following it */
- x = strqtok_r(buf, ";", '\\', quot, &qt, &st);
- if (x == NULL)
- return 0;
- if (qt) {
- fprintf(stderr, "unmatched %c-quote\n", *qt);
- return -1;
- }
- if (*buf == '\0')
+ /* strip leading whitespace */
+ line += strspn(line, whitespace);
+ if (*line == '\0')