Lines Matching defs:line
73 static line_status config_line(char *line, char *section, char *key, char *value)
78 if ((len = strcspn(line, "#;")) == 0) {
79 /* comment line */
82 line[len] = 0;
83 if ((len = strtrim(line)) == 0) {
84 /* empty line */
87 if (line[0] == '[' && line[len - 1] == ']') {
89 memcpy(section, line + 1, len - 2);
94 if (split = strchr(line, '=')) {
97 klen = split - line;
99 if (klen > 0) memcpy(key, line, klen);
290 char line[MAX_LINE_SIZE + 1];
311 memset(line, 0, sizeof line);
316 while (fgets(line, sizeof line, file)) {
318 len = strlen(line);
321 if (line[len - 1] != '\n' && !feof(file)) {
323 "config: input line too long in %s (%d)\n", filepath, lineno);
329 if (line[len - 1] == '\n') {
330 line[len - 1] = 0;
334 switch (config_line(line, section, key, val)) {
347 line);