Skip to main content

pio_dist_convert_file

Function pio_dist_convert_file 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_dist_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 distribution case path from optional source format from to format to; see pio_dist_parse_file for the inference rules. Returns the converted text as an owned C string (free with pio_string_free), NULL on error. The warnings written \n-joined into warnbuf carry both the parse warnings and the writer’s fidelity losses (there is no handle to query them).