Skip to main content

asdf_parser_set_input_fp

Function asdf_parser_set_input_fp 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn asdf_parser_set_input_fp( parser: *mut AsdfParser, fp: *mut c_void, filename: *const c_char, ) -> c_int
Expand description

Read an already-open stream. Returns 0 on success.

The whole stream is read up front, so fp may be closed once this returns. filename is optional and is used only in messages.

ยงSafety

fp must be a FILE * open for reading, positioned where the ASDF file begins.