Skip to main content

xmlSaveFileTo

Function xmlSaveFileTo 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlSaveFileTo( buf: *mut _xmlOutputBuffer, cur: *mut _xmlDoc, encoding: *const c_char, ) -> c_int
Expand description

int xmlSaveFileTo(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *encoding) — upstream xmlsave.c delegates to xmlSaveFormatFileTo(buf, cur, encoding, 0).

§SAFETY

  • buf must be a valid output buffer (closed by this call).
  • cur must be a valid document.