Skip to main content

xmlSaveFinish

Function xmlSaveFinish 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlSaveFinish( ctxt: *mut _xmlSaveCtxt, ) -> c_int
Expand description

xmlParserErrors xmlSaveFinish(xmlSaveCtxt *ctxt) — flush, close, free; returns an xmlParserErrors code (XML_ERR_OK on success).

§UPSTREAM-PARITY

Upstream xmlSaveFinish returns xmlOutputBufferClose(ctxt->buf)’s error code (negated when negative), i.e. XML_ERR_OK (0) on success.

§SAFETY

  • ctxt must be a valid save context; it is freed by this call.