Function ff_get_line

Source
pub unsafe extern "C" fn ff_get_line(
    s: *mut AVIOContext,
    buf: *mut c_char,
    maxlen: c_int,
) -> c_int
Expand description

Read a whole line of text from AVIOContext. Stop reading after reaching either a \n, a \0 or EOF. The returned string is always \0-terminated, and may be truncated if the buffer is too small.

@param s the read-only AVIOContext @param buf buffer to store the read line @param maxlen size of the buffer @return the length of the string written in the buffer, not including the final \0