The aim of this project is to make you code a function that returns a line, read from a file descriptor.
from pathlib import Path
for line in Path('README.md').open():
print(line)
int get_next_line(int fd, char **line)
- reference to
char *line
is passed to store lines read - returns lengths read, -1 if error
char *get_next_line(int fd)
- returns read line
- returns
NULL
if error