Function libspa_sys::spa_vscnprintf

source ·
pub unsafe extern "C" fn spa_vscnprintf(
    buffer: *mut c_char,
    size: usize,
    format: *const c_char,
    args: *mut __va_list_tag
) -> c_int
Expand description

“Safe” version of vsnprintf. Exactly the same as vsnprintf but the returned value is clipped to size - 1 and a negative or zero size will abort() the program.

\return The number of bytes printed, capped to size-1, or a negative number on error.