get_next_line
Stack
- C
A C function that reads a file line by line using only a fixed buffer and system calls. Handles long lines, multiple reads, and (in the bonus) several open files at once. Illustrates file descriptors, buffering, and memory management in C.