Skip to main content

xmlTextWriterClose

Function xmlTextWriterClose 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlTextWriterClose( writer: *mut XmlTextWriter, ) -> c_int
Expand description

Close the writer’s output buffer. The writer itself is NOT freed (upstream contract: xmlFreeTextWriter does that). Returns XML_ERR_OK (0) on success, XML_ERR_ARGUMENT (9) for a NULL writer or NULL output buffer.

§UPSTREAM-PARITY

int xmlTextWriterClose(xmlTextWriterPtr writer);

§SAFETY

  • writer must be a valid pointer to an XmlTextWriter or NULL.