Lines Matching defs:lineptr
39 #define LINESZ 128 /* initial guess for a NULL *lineptr */
42 getdelim(char **_RESTRICT_KYWD lineptr, size_t *_RESTRICT_KYWD n,
51 if (lineptr == NULL || n == NULL ||
57 if (*lineptr == NULL || *n < LINESZ) { /* initial allocation */
58 if ((*lineptr = realloc(*lineptr, LINESZ)) == NULL) {
64 ptr = *lineptr;
78 if ((ptr = realloc(*lineptr, 2 * size)) == NULL) {
80 ptr = *lineptr + size - 1;
85 *lineptr = ptr;
102 getline(char **_RESTRICT_KYWD lineptr, size_t *_RESTRICT_KYWD n,
105 return (getdelim(lineptr, n, '\n', iop));