4 * return true if line is empty or contains only spaces/comments
6 int line_is_empty(const char *buf)
8 while (*buf != '\0' && *buf != '#') {
16 /* if buf is a string surrounded by simple or double quotes, return 0
17 * and fill *start and *end to the position of quotes. Else, return
19 int remove_quote(const char *buf, int *start, int *end)
26 /* if it starts with double quote, remove them */
31 if ((*c == '"') && (*(c-1) != '\\')) {
39 /* if it starts with simple quote, remove them */
44 if ((*c == '\'') && (*(c-1) != '\\')) {