get_next_line is a reading function written in C, that can be used to read a line from a file discriptor. Through the use of a static variable, the function can keep track of its position within the given file, and always return the next line read.
This results in a function that can practically be used to read large files, or examine text in a file line by line.
Last updated: 21-05-2019 / Jesse Dunnink