pub unsafe fn cstr_from_ptr<'a>(ptr: *const c_char) -> &'a str