Mandatory Part 👨🏻💻
In the mandatory part, i read from a file Descriptor and each time i call the function, it returns the next line ✅
The First Step : Read From The Given File With Read (System Call Function) With The Given BUFFER_SIZE.
The Second Step : Check If the Newline Charachter exists in the Reading Number Of Bytes (BUFFER_SIZE).
The Third Step : I Return The Reading Byte Even The Newline Character And Save The Remaining Part Inside The Static Variable
Bonus Part 👨🏻💻
gcc $(Your_Files) $(Path/To/gnl/Mandatory/*.c) -D BUFFER_SIZE=42
gcc $(Your_Files) $(Path/To/gnl/Bonus/*.c) -D BUFFER_SIZE=42
In This Project I learned how the Static Variables And File Descriptors Work , It Is a good Project 💯.