Function truncate_cstr

Source
fn truncate_cstr<const MAX_WITH_NUL: usize>(
    cstr: &CStr,
) -> [c_char; MAX_WITH_NUL]