(ret: i32, func: &'static str)
| 1362 | } |
| 1363 | |
| 1364 | fn check(ret: i32, func: &'static str) -> Result<(), String> { |
| 1365 | if ret < 0 { |
| 1366 | Err(format!("{func} failed with error code {ret}")) |
| 1367 | } else { |
| 1368 | Ok(()) |
| 1369 | } |
| 1370 | } |
| 1371 | |
| 1372 | fn c_string_array(strings: &[&str]) -> Result<(Vec<CString>, Vec<*const libc::c_char>), String> { |
| 1373 | let owned: Vec<CString> = strings |
no outgoing calls
no test coverage detected