nstd_cstring_as_bytes

Function nstd_cstring_as_bytes 

Source
#[unsafe(no_mangle)]
pub const extern "C" fn nstd_cstring_as_bytes( cstring: &NSTDCString<'_>, ) -> NSTDSlice
Available on crate feature cstring only.
Expand description

Returns an immutable byte slice of the C string’s active data, including the null byte.

§Parameters:

  • const NSTDCString *cstring - The C string.

§Returns

NSTDSlice bytes - The C string’s active data.