OscarMulder / codam-crap_next_line

I wrote a crappy get_next_line that is not that crappy anymore.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crap_next_line

I wrote a crappy get_next_line and then improved it so it's no longer crappy.

get_next_line

Get_next_line is a function that gets one line from a file descriptor on each call. It keeps a buffer with the data it already read and will return the next line on each call.

About

I wrote a crappy get_next_line that is not that crappy anymore.


Languages

Language:C 97.8%Language:Shell 2.2%