This project consists on the creation of a function that reads a file, line per line. To try this project, you can use the commented main function in the get_next_line.c
(mandatory) or the get_next_line_bonus.c
(bonus) file.
The difference between the mandatory and the bonus part is that the mandatory can only read from a single file, while the bonus can read from multiple files.
1- Clone this repository and enter it:
git clone https://github.com/reomelo/42Porto-get_next_line.git && cd 42Porto-get_next_line
2- Run make
and compile your program with the required files:
make && cc -Wall -Wextra -Werror main.c get_next_line.c get_next_line_utils.c (mandatory)
3- To test the bonus:
make && cc -Wall -Wextra -Werror main.c get_next_line_bonus.c get_next_line_utils_bonus.c (bonus)