get_next_line.c
reads line from the file accroding to the file descriptor and writes the result to the input pointer.
- supports reading line by line
- supports multiple file descriptors
git clone "https://github.com/cardengo/get_next_line.git"
make
--> compile files./gnl
+file-to-raed
--> launch binarymake clean
--> deletegnl
binarymake val
--> check for memory leaks (required Valgrind)
1
--> line was read0
--> there is no more lines in the file (end of the file)-1
--> error occured
Directory contains main.c
and two files (in files/
) for quick demonstration.
Unix systems only.