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, warnbuf: *mut c_char, warnlen: usize, 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 written \n-joined into warnbuf.