Lines Matching refs:linep
34 ssize_t getdelim(char **linep, size_t *np, int delim, FILE *stream)
42 if (!linep || !np) {
47 if (*linep == NULL || *np == 0) {
49 *linep = calloc(1, *np);
50 if (*linep == NULL) return -1;
52 line = *linep;
58 new_line = realloc(*linep, new_len);
61 line = *linep = new_line;
72 new_line = realloc(*linep, new_len);
75 line = *linep = new_line;
82 ssize_t getline(char **linep, size_t *np, FILE *stream)
84 return getdelim(linep, np, '\n', stream);