May it be a file, stdin, or even later a network connection, you will always need a way to read content line by line. It is time to start working on this function, which will be essential for your future projects.
To install and build
git clone https://github.com/WOLFIE-OG/get_next_line
cd get_next_line
make