get_next_line - README

get_next_line

C project · file I/O, memory

Reads a file descriptor one line at a time with careful dynamic memory handling.

The problem

Return one line at a time from a file descriptor, whatever the buffer size.

What I built

The hard part

Memory: never leaking the leftover buffer on errors or at end of file, with only one static variable allowed.

Built with

More projects