pub unsafe extern "C" fn svn_stream_readline(
stream: *mut svn_stream_t,
stringbuf: *mut *mut svn_stringbuf_t,
eol: *const c_char,
eof: *mut svn_boolean_t,
pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Allocate @a *stringbuf in @a pool, and read into it one line (terminated by @a eol) from @a stream. The line-terminator is read from the stream, but is not added to the end of the stringbuf. Instead, the stringbuf ends with a usual ‘\0’.
If @a stream runs out of bytes before encountering a line-terminator, then set @a *eof to @c TRUE, otherwise set @a *eof to FALSE.