fn collect_argv(argv: &[String]) -> Vec<std::ffi::CString> {
    argv.iter()
        .map(|s| std::ffi::CString::new(s.as_bytes()).unwrap())
        .collect::<Vec<std::ffi::CString>>()
}
// Collects strings as FFI strings (for use to convert argv array).
Collects strings as FFI strings (for use to convert argv array).
Collects strings as FFI strings ( for use to convert argv array ) .
fn collect_argv(argv: &[String]) -> Vec<std::ffi::CString> {
    argv.iter()
        .map(|s| std::ffi::CString::new(s.as_bytes()).unwrap())
        .collect::<Vec<std::ffi::CString>>()
}
fn collect_argv ( argv : & [ String ] ) -> Vec < std :: ffi :: CString > { argv . iter ( ) . map ( | s | std :: ffi :: CString :: new ( s . as_bytes ( ) ) . unwrap ( ) ) . collect :: < Vec < std :: ffi :: CString > > ( ) }
Collects strings as FFI strings (for use to convert argv array).
Collects strings as FFI strings ( for use to convert argv array ) .
argv
&[String]
argv
&[String]