In this project i implemented many functions from standard libraries like: string.h, stdlib.h, stdio.h ... etc. You may ask WHY? First of all it's a really good experience. Second is that in school 42 many of projects in general should be implemented using only: malloc, free, write, open, read, close, exit. Standard Functions. So if you write a bad libft this will affect future projects.
get_next_line in general works same as standard function getline
get_next_line prototype: int get_next_line(const int fd, char **line);
The return value can be 1, 0 or -1 depending on whether a line has been read, when the reading has been completed, or if an error has happened respectively.