/get_next_line

Hive - get_next_line

Primary LanguageC

get_next_line

Hive - get_next_line

Whether it is a file, the standard input or, later on, a network connection, you will always need to read content line by line. It is therefore time to tackle this function, which is essential for a number of your future projects.

Grade:

osalmine's GET_Next_Line Score

I have provided a main for this project although the subject doesn't ask for it. You can provide your own main, but my main will print the whole file it is given. get_next_line can read from standard input or from a file. See main.c for example usage.

run.sh will compile the project as the subject specifies.

Usage:

sh run.sh
./test_gnl [file]