c_str_to_rust_unchecked

Function c_str_to_rust_unchecked 

Source
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