The goal of the project is to create a script that receives a file descriptor and reads a predefined amount of bytes BUFFER_SIZE, until the end of a line is reached. When the number of bytes in the line is not a multiple of BUFFER_SIZE, the read function will read bytes that do not belong to the line in question, but to the next line. As a result, this project reads and returns one line at a time from a file descriptor, whenever the get_next_line function is executed. The bonus part handles multiple text files simultaneously.
get_next_line.c
Checks and reads the contents of the file descriptor to the end of the line one line at a time.
get_next_line.h
Header of the project
get_next_line_utils.c
General purpose functions. Check out the individual documentation here.