pub unsafe fn error_from_cstr(msg: *const i8) -> String
Helper to extract error message from a C string pointer
The msg pointer must be either null or point to a valid null-terminated C string.
msg