|buffer_getline(3)||Library Functions Manual||buffer_getline(3)|
NAME¶buffer_getline - read line from buffer
ssize_t buffer_getline(buffer* b,char* x,size_t len);
DESCRIPTION¶buffer_getline copies data from b to x, x, ..., x[len-1] until len bytes have been copied or a new-line character ('\n') is encountered. That character is also copied.
Note that line is not 0-terminated to make reading lines with 0-bytes possible through this interface.