truncate_cstr

Function truncate_cstr 

Source
fn truncate_cstr<const MAX_WITH_NUL: usize>(
    cstr: &CStr,
) -> [c_char; MAX_WITH_NUL]
Available on Linux or target_os=nto or Solaris or illumos or target_os=vxworks or Cygwin or Apple only.