pnkfluffy / get_next_line Goto Github PK
View Code? Open in Web Editor NEWThis is a single function which gets passed a file descriptor as well as the address of a variable. The function populates the variable address with the next line read from the file descriptor. Calling the function multiple times or in a loop continues to populate the variable with the next line until the end of file is reached.