Searched refs:lineptr (Results 1 – 2 of 2) sorted by relevance
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | iogetdelim.c | 41 _IO_getdelim(char **lineptr, _IO_size_t *n, int delimiter, _IO_FILE *fp) in _IO_getdelim() argument 47 if (lineptr == NULL || n == NULL) in _IO_getdelim() 61 if (*lineptr == NULL || *n == 0) in _IO_getdelim() 64 *lineptr = (char *) malloc (*n); in _IO_getdelim() 65 if (*lineptr == NULL) in _IO_getdelim() 98 new_lineptr = (char *) realloc (*lineptr, needed); in _IO_getdelim() 104 *lineptr = new_lineptr; in _IO_getdelim() 107 memcpy (*lineptr + cur_len, (void *) fp->_IO_read_ptr, len); in _IO_getdelim() 114 (*lineptr)[cur_len] = '\0'; in _IO_getdelim()
|
/haiku/src/system/libroot/posix/glibc/stdio-common/ |
H A D | getline.c | 22 ssize_t __getline(char **lineptr, size_t *n, FILE *stream); 27 __getline(char **lineptr, size_t *n, FILE *stream) in __getline() argument 29 return __getdelim(lineptr, n, '\n', stream); in __getline()
|