This is the repository for the School 42 Málaga cursus projectget_next_line()
.
About · Index · Requirements · Instructions · Testing
The goal of this project is to create the function get_next_line.c
which, when called in a loop, will read one line at a time in the file descriptor, until the end of the file. As stated in the subject, the program must compile with the flag-D BUFFER_SIZE=
which will be used as the buffer size for the read
calls in get_next_line()
. You can find more details in the subject of the project.
This project is a introduction of static variables, which will be very useful for future projects. Also, as noted earlier, we'll learn how handle macros during compilation.
This function have been tested with Francinette.