| 107 | /* Find the end of a value string */ |
| 108 | |
| 109 | static char *find_value_end(char *ptr) |
| 110 | { |
| 111 | while (*ptr && !isspace((int)*ptr)) |
| 112 | { |
| 113 | if (*ptr == '"') |
| 114 | { |
| 115 | do ptr++; while (*ptr && (*ptr != '"' || *(ptr - 1) == '\\')); |
| 116 | if (*ptr) ptr++; |
| 117 | } |
| 118 | else |
| 119 | { |
| 120 | do ptr++; while (*ptr && !isspace((int)*ptr) && *ptr != '"'); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | return ptr; |
| 125 | } |
| 126 | |
| 127 | /* Read the next line from the configuration file */ |
| 128 |