Skip to main content

pio_convert_file

Function pio_convert_file 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_convert_file( path: *const c_char, from: *const c_char, to: *const c_char, out_warnings: *mut *mut c_char, errbuf: *mut c_char, errlen: usize, ) -> *mut c_char
Expand description

Convert the case file at path from format from (NULL to infer from the path, as pio_parse_file) to format to, without keeping a handle. Returns the converted text as an owned C string (free with pio_string_free), NULL on error. Fidelity warnings, read side first, are published through out_warnings as one owned C string (free it with pio_string_free), NULL when there are none. Pass NULL to discard them.