#[no_mangle]
pub extern "C" fn nstd_cstring_as_cstr(
    cstring: &NSTDCString<'_>
) -> NSTDCStr
Available on crate feature cstring only.
Expand description

Creates a C string slice containing the contents of cstring.

Parameters:

  • const NSTDCString *cstring - The C string.

Returns

NSTDCStr cstr - The new C string slice.