Lines Matching refs:line
5 extern int getline(char **line, size_t *len, FILE *file);
7 int getline(char **line, size_t *len, FILE *file)
12 if (*line == NULL) {
15 *line = malloc(4096);
16 if (*line == NULL)
22 ptr = *line;
23 end = *line + *len;
30 newline = realloc(*line, *len + 4096);
34 offset = ptr - *line;
36 *line = newline;
39 ptr = *line + offset;
40 end = *line + *len;
46 return ptr - *line;