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

Get a string describing the error, this will return an allocated null terminated string describing the error.

If the given error is a NULL pointer, the string is and always is "success". 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