Function ffi_helpers::error_handling::error_message_utf8
[−]
[src]
pub unsafe fn error_message_utf8(buf: *mut c_char, length: c_int) -> c_int
Peek at the most recent error and write its error message (Display
impl)
into the provided buffer as a UTF-8 encoded string.
This returns the number of bytes written, or -1
if there was an error.