Function mupdf_sys::fz_read_line

source ·
pub unsafe extern "C" fn fz_read_line(
    ctx: *mut fz_context,
    stm: *mut fz_stream,
    buf: *mut c_char,
    max: usize
) -> *mut c_char
Expand description

Read a line from stream into the buffer until either a terminating newline or EOF, which it replaces with a null byte (‘\0’).

Returns buf on success, and NULL when end of file occurs while no characters have been read.