#[unsafe(no_mangle)]pub unsafe extern "C" fn libra_error_write(
error: libra_error_t,
out: *mut MaybeUninit<*mut c_char>,
) -> i32Expand description
Writes the error message into out
If error is null, this function does nothing and returns 1. Otherwise, this function returns 0.
ยงSafety
errormust be a valid and initialized instance oflibra_error_t.outmust be a non-null pointer. The resulting string must not be modified.