get-next-line - @42Born2Code

A C function that reads any valid file line by line until the end.

What is get_next_line ?

get_next_line is an individual project at 19/42 that basically reads a file line by line.

Disclaimer: There are so many easier methods of doing this by using standard C functions. But the goal here is to be able to do it by using any functions from my libft and only the standard functions read, malloc and free.

Why would I use it/try it ?

The goal is just to get better at C. As I said above, you can only use those three standard library functions:

  • read
  • malloc
  • free

So it makes the project harder. But you can also use functions from your personal library.

After finishing this project, you'll definitely learn some more about static variables, pointers, arrays), dynamic memory allocation and file manipulation.