Function mm0b_parser::cstr_from_bytes_prefix[][src]

#[must_use]
pub fn cstr_from_bytes_prefix(bytes: &[u8]) -> Option<(&CStr, &[u8])>

Construct a &CStr from a prefix byte slice, by terminating at the first nul character. The second output is the remainder of the slice.