#[no_mangle]
pub unsafe extern "C" fn iohk_jormungandr_wallet_error_details(
    error: ErrorPtr
) -> *mut c_char
Expand description

Get a string describing the error, this will return an allocated null terminated string providing extra details regarding the source of the error.

If the given error is a NULL pointer, the string is and always is "success". If no details are available the function will return "no more details". This string still need to be deleted with the iohk_jormungandr_wallet_delete_string function.

This function returns an allocated null terminated pointer. Don’t forget to free the memory with: iohk_jormungandr_wallet_delete_string.

Safety

This function dereference raw pointers. Even though the function checks if the pointers are null. Mind not to put random values in or you may see unexpected behaviors