get_next_line

A function which retrieves the next line from a file

This was an exercise in buffer management, which also introduced the concept of static variables. A tough one, which was satisfying to solve!