The aim of this project is to make a function that returns a line ending with a newline, read from a file descriptor.
At 42 School, almost every project must be written in accordance to the Norm, the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.
To use this library, import the "get_next_line.h" header into your files.
#include "get_next_line.h"
Compile your file with "get_next_line.c" and "get_next_line_utils.c".
You can edit the BUFFER_SIZE with -D BUFFER_SIZE=number.
Exemple :
gcc your_file.c get_next_line.c get_next_line_utils.c -D BUFFER_SIZE=100 && ./a.out
To install the project, clone this repository :
$ git@github.com:julienhouyet/42-get_next_line.git
β get_next_line
char *get_next_line(int fd);
Returns a line read from a file descriptor.