fileio: add new helper call read_line() as bounded getline() replacement
read_line() is much like getline(), and returns a line read from a FILE*, of arbitrary sizes. In contrast to gets() it will grow the buffer dynamically, and in contrast to getline() it will place a user-specified boundary on the line. (cherry picked from commit 4f9a66a3)
Loading
Please register or sign in to comment