get_next_line

Description

In this project, we had to make a function in which would return a char * (a string) of the current line in a file descriptor.
each time the function was called, it would return the next line in a file, if the file ended, it returns a NULL pointer.

Using the function

You need to compile the C files like your C files in your project :
gcc *.c

Inside your C program just import the function like this :
#include "get_next_line.h"

The function :
char *line = get_next_line(fd); // fd is the file descriptor (int)

Final grade : 101/100