Function std::ffi::c_str_to_bytes_with_nulUnstable
[-]
[+]
[src]
pub unsafe fn c_str_to_bytes_with_nul<'a>(raw: &'a *const c_char) -> &'a [u8]
Interpret a C string as a byte slice with the nul terminator.
This function is identical to from_raw_buf except that the returned slice
will include the nul terminator of the string.