(s: *const libc::c_char)
| 1 | unsafe fn get_str<'a>(s: *const libc::c_char) -> &'a str { |
| 2 | let bytes = std::ffi::CStr::from_ptr(s).to_bytes(); |
| 3 | std::str::from_utf8(bytes).unwrap() |
| 4 | } |
| 5 | |
| 6 | fn main() { |
| 7 | unsafe { |
nothing calls this directly
no outgoing calls
no test coverage detected