Function rerun_c::ptr::try_char_ptr_as_str

source ·
pub fn try_char_ptr_as_str(
    ptr: *const c_char,
    string_length_in_bytes: u32,
    argument_name: &str,
) -> Result<&str, CError>
Expand description

Tries to convert a c_char pointer to a string, raises an error if the pointer is null or it can’t be converted to a string.