Searched defs:lineptr (Results 1 - 3 of 3) sorted by relevance

/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dgetline.c25 extern ssize_t getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp);
28 getline (char **lineptr, size_t *n, FILE *stream) argument
30 return getdelim (lineptr, n, '\n', stream);
H A Dgetdelim.c25 optimizes away the lineptr == NULL || n == NULL || fp == NULL tests below. */
59 getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp) argument
64 if (lineptr == NULL || n == NULL || fp == NULL)
72 if (*lineptr == NULL || *n == 0)
76 new_lineptr = (char *) realloc (*lineptr, *n);
82 *lineptr = new_lineptr;
113 new_lineptr = (char *) realloc (*lineptr, needed);
120 *lineptr = new_lineptr;
124 (*lineptr)[cur_len] = i;
130 (*lineptr)[cur_le
[all...]
/osnet-11/usr/src/lib/libc/port/stdio/
H A Dgetline.c39 #define LINESZ 128 /* initial guess for a NULL *lineptr */
42 getdelim(char **_RESTRICT_KYWD lineptr, size_t *_RESTRICT_KYWD n, argument
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
102 getline(char **_RESTRICT_KYWD lineptr, size_t *_RESTRICT_KYWD n, FILE *_RESTRICT_KYWD iop) argument
[all...]

Completed in 34 milliseconds