cstr_to_owned

Function cstr_to_owned 

Source
pub unsafe fn cstr_to_owned(cstr: *const c_char) -> String
Available on non-madsim only.
Expand description

Converts a C string into a String.

ยงSafety

cstr must point to a valid, null-terminated C string.