/42sp-get_next_line

This project is about programming a function that returns a line read from a file descriptor

Primary LanguageC

get_next_line

This project is about programming a function that returns a line read from a file descriptor

Final Score

eandre-f score

The Project

  • Your function should return the line that was read. If there is nothing else to read or if an error occurred, it should return NULL.

  • Please note that the returned line should include the terminating \n character, except if the end of file was reached and does not end with a \n character.

  • Because you will have to read files in get_next_line(), add this option to your compiler call: -D BUFFER_SIZE=n It will define the buffer size for read().

Mandatory

Works with a single file descriptor at a time

Files

get_next_line.c get_next_line_utils.c get_next_line.h

Tests

make m

Bonus

Works with multiple file descriptors at the same time

Files

get_next_line_bonus.c get_next_line_bonus.h get_next_line_utils_bonus.c

Tests

make b