#[no_mangle]
pub extern "C" fn nstd_cstring_as_bytes(
    cstring: &NSTDCString
) -> NSTDSlice
Available on crate feature nstd_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.