![]()  | 
								
									 
										tgrekov-pipex
									 
									
										HIVE pipex May 2024
									 
								 | 
							
Definition in file get_next_line_bonus.h.
#include "stdlib.h"#include "unistd.h"Go to the source code of this file.
Macros | |
| #define | BUFFER_SIZE 1024 | 
| Set default BUFFER_SIZE if it is not defined at compile time.  | |
| #define | MAX_FD 1024 | 
| Max open file descriptors per process.  | |
Functions | |
| char * | get_next_line (int fd) | 
Return the next segment of text ending in a newline or EOF from file descriptor fd.   | |
| char * get_next_line | ( | int | fd | ) | 
Return the next segment of text ending in a newline or EOF from file descriptor fd. 
| [in] | fd | Integer file descriptor to read from | 
| char* | Freeable, null-terminated string on success, or NULL if error or nothing to read  | 
Definition at line 132 of file get_next_line_bonus.c.
References BUFFER_SIZE, consume_and_resize(), fill_line_buf(), and MAX_FD.