Skip to main content

error_from_cstr

Function error_from_cstr 

Source
pub unsafe fn error_from_cstr(msg: *const i8) -> String
Expand description

Convert an optional NUL-terminated C string into an owned Rust string.

ยงSafety

msg must be null or point to a valid NUL-terminated string.