Skip to main content

pio_dist_parse_str

Function pio_dist_parse_str 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_dist_parse_str( text: *const c_char, format: *const c_char, errbuf: *mut c_char, errlen: usize, ) -> *mut PioDistNetwork
Expand description

Parse in-memory distribution case text of the named format (dss, pmd, or bmopf; required, since there is no path to infer from). An OpenDSS Redirect/Compile in text resolves against the current working directory. Returns NULL on error and writes the message into errbuf. Free the handle with pio_dist_network_free.