Function save_error_string

pub unsafe fn save_error_string(
    e: impl Display,
    error_string: *mut i8,
    error_string_len: usize,
)
Expand description

Save the error string to the given pointer. The string is NUL-terminated. The function will write at most error_string_len bytes (including the NUL).

ยงSafety

This function should only when interacting with pointers passed from C.