Lines Matching defs:line_buf
42 char *line_buf = NULL;
61 int len = getline (&line_buf, &line_len, fp);
68 if (len > 0 && line_buf[len - 1] == '\n')
69 line_buf[--len] = '\0';
71 && (line_buf[len - 1] == ' '
72 || line_buf[len - 1] == '\t'
73 || line_buf[len - 1] == '\r'))
74 line_buf[--len] = '\0';
77 if (*line_buf == '\0' || *line_buf == '#')
80 string_list_append_unique (result, line_buf);
84 if (line_buf != NULL)
85 free (line_buf);