| 127 | /* Read the next line from the configuration file */ |
| 128 | |
| 129 | static char *read_line(FILE *stream) |
| 130 | { |
| 131 | char *ptr; |
| 132 | |
| 133 | for (; ; ) |
| 134 | { |
| 135 | line[LINESIZE] = '\0'; |
| 136 | if (!fgets(line, LINESIZE, stream)) |
| 137 | { |
| 138 | return NULL; |
| 139 | } |
| 140 | else |
| 141 | { |
| 142 | ptr = skip_space(line); |
| 143 | if (*ptr && *ptr != '#' && *ptr != '\n') |
| 144 | { |
| 145 | return ptr; |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | /* Parse the line from the configuration file into a variable name |
| 152 | * string and a value string. |
no test coverage detected