The second project in 42Cursus, with this function we are able to read the text available on a file descriptor one line at a time until the EOF.
Study Links
- everthing is a file: https://www.youtube.com/watch?v=dDwXnB6XeiA
- How to manipulate fd: https://www.youtube.com/watch?v=dP3N8g7h8gY&ab_channel=ShellWaveShellWave
- D flag used to set BUFFER_SIZE: https://www.rapidtables.com/code/linux/gcc/gcc-d.html
- Static variables: https://www.geeksforgeeks.org/static-variables-in-c/ https://craftofcoding.wordpress.com/2015/12/07/memory-in-c-the-stack-the-heap-and-static/