Function c_ffi::c_str_to_rust_unchecked [−][src]
pub unsafe fn c_str_to_rust_unchecked(ptr: *const u8) -> &'static str
Expand description
Converts C string to Rust’s one assuming it is UTF-8
It is UB to pass non-C string as it requires \0