The aim of this project is to code a function that returns a line ending with a newline, read from a file descriptor.
This project also introduces the concept of static variables in C programming.
- Allowed functions:
malloc
,free
,write
- All heap allocated memory space must be properly freed when necessary
Run the following commands
$ git clone https://github.com/DelicaTessa/42-get_next_line.git
$ cd 42-get_next_line
$ gcc -D BUFFER_SIZE=32 -o get_next_line main.c get_next_line.c get_next_line_utils.c
$ ./get_next_line test.txt