Function grpcio_sys::gpr_asprintf[][src]

pub unsafe extern "C" fn gpr_asprintf(
    strp: *mut *mut c_char,
    format: *const c_char,
     ...
) -> c_int

printf to a newly-allocated string. The set of supported formats may vary between platforms.

On success, returns the number of bytes printed (excluding the final ‘\0’), and *strp points to a string which must later be destroyed with gpr_free().

On error, returns -1 and sets *strp to NULL. If the format string is bad, the result is undefined.