-
Calling Get_Next_Line in a loop will read the text available on a file descriptor one line at a time until the EOF, It can manage multiple file descriptor at the same time.
-
It return either 1 if a line has been read or 0 if EOF has been reached, and -1 if an error happened.
conanyedo / get_next_line Goto Github PK
View Code? Open in Web Editor NEWReading from a file descriptor line by line