Skip to main content

pio_warnings

Function pio_warnings 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_warnings( net: *const PioNetwork, warnbuf: *mut c_char, warnlen: usize, ) -> usize
Expand description

The fidelity warnings attached to the handle at construction (by whichever of pio_parse_file, pio_parse_str, pio_read_dir, or pio_normalize built it), \n-joined into warnbuf (truncated to fit on a UTF-8 boundary; NULL/0 to skip). Returns the byte length of the full joined text, excluding the NUL; call once with (NULL, 0) to size, then pass a char[len + 1]. 0 means no warnings (or a NULL handle); readers that are total attach none.