The aim of this project is to code a function that returns a line ending with a newline, read from a file descriptor. It is used to read content from a file line by line. Static variables been used as a base component to code the function.
name | prototype | description |
---|---|---|
get_next_line | int get_next_line(int fd, char **line); | returns a line read from a file descriptor, without the newline. |