c_ffi
pub unsafe fn c_str_to_rust(ptr: *const u8) -> Result<&'static str, Utf8Error>
Converts C string to Rust's, verifying it is UTF-8
It is UB to pass non-C string as it requires \0