nautilus_core::ffi::stringFunction cstr_to_ustr
Source pub unsafe fn cstr_to_ustr(ptr: *const c_char) -> Ustr
Expand description
Convert a C string pointer into an owned String
.
§Safety
- Assumes
ptr
is a valid C string pointer.
§Panics
This function panics: