Function mm0b_parser::cstr_from_bytes_prefix[][src]

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

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