How yazalameeh/gnl works
This is a small C library for returning one line at a time from a file descriptor. A caller repeatedly invokes get_next_line; the function reads chunks into persistent stash state, extracts a line, and retains any remainder for the next call. The implementation and its internal phases are in get_next_line.c, with string helpers in get_next_line_utils.c. The README documents the caller workflow; no separate runtime subsystems are present.
Main entry points: get_next_line.c get_next_line · get_next_line_utils.c String helpers
Components 7
Other components
- Caller
- get_next_line
get_next_line.c - Read and stash
get_next_line.c - Line extraction
get_next_line.c - Stash cleanup
get_next_line.c - String helpers
get_next_line_utils.c - read()
Connections 8
- Caller → get_next_line: requests line
README.md - get_next_line → Read and stash: reads and stashes
get_next_line.c - Read and stash → read(): reads chunks
get_next_line.c - Read and stash → String helpers: joins and searches
get_next_line.c - get_next_line → Line extraction: extracts line
get_next_line.c - get_next_line → Stash cleanup: updates stash
get_next_line.c - Stash cleanup → String helpers: measures remainder
get_next_line.c - get_next_line → Caller: returns line
get_next_line.c