| 87 | /* Read the next line from the configuration file */ |
| 88 | |
| 89 | static char *read_line(FILE *stream) |
| 90 | { |
| 91 | char *ptr; |
| 92 | |
| 93 | for (; ; ) |
| 94 | { |
| 95 | line[LINESIZE] = '\0'; |
| 96 | if (!fgets(line, LINESIZE, stream)) |
| 97 | { |
| 98 | return NULL; |
| 99 | } |
| 100 | else |
| 101 | { |
| 102 | ptr = skip_space(line); |
| 103 | if (*ptr && *ptr != '#' && *ptr != '\n') |
| 104 | { |
| 105 | return ptr; |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | /* Parse the line from the configuration file into a variable name |
| 112 | * string and a value string. |
no test coverage detected