Skip to main content

pamoja_last_error_message

Function pamoja_last_error_message 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_last_error_message() -> *const c_char
Expand description

Returns the calling thread’s most recent error message, or null if none.

§Returns

A pointer to a null-terminated UTF-8 string owned by the library, valid until the next failing call on the same thread, or null if no error has been recorded. The caller must not free it and should copy it before making another pamoja call on this thread.