Skip to main content

pio_dist_convert_str

Function pio_dist_convert_str 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_dist_convert_str( text: *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 in-memory distribution case text of format from to format to (both required; dss, pmd, or bmopf). The parameter order is input, source, target, matching pio_dist_convert_file. 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).