Skip to main content

xmlReaderForFd

Function xmlReaderForFd 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlReaderForFd( fd: c_int, URL: *const c_char, encoding: *const c_char, options: c_int, ) -> *mut XmlTextReader
Expand description

Create a text reader from a file descriptor.

§UPSTREAM-PARITY

xmlTextReaderPtr xmlReaderForFd(int fd, const char *URL,
                                const char *encoding, int options);

§Safety

  • fd must be a valid open file descriptor.
  • URL and encoding must be valid C strings or NULL.