error_from_cstr

Function error_from_cstr 

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

Helper to extract error message from a C string pointer

ยงSafety

The msg pointer must be either null or point to a valid null-terminated C string.