Function c_str_to_string

Source
pub(crate) unsafe fn c_str_to_string(ptr: *mut c_char) -> SzResult<String>
Expand description

Converts a C string pointer to a Rust string and frees the C string

ยงSafety

The caller must ensure that ptr is either null or a valid pointer to a null-terminated C string that was allocated by the Senzing library and can be freed with Sz_free.