MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlTextWriterCloseDocCallback

Function xmlTextWriterCloseDocCallback

ThirdParty/libxml2/vtklibxml2/xmlwriter.c:4464–4478  ·  view source on GitHub ↗

* xmlTextWriterCloseDocCallback: * @context: the xmlBufferPtr * * Close callback for the xmlOutputBuffer with target xmlBuffer * * Returns -1, 0, 1 */

Source from the content-addressed store, hash-verified

4462 * Returns -1, 0, 1
4463 */
4464static int
4465xmlTextWriterCloseDocCallback(void *context)
4466{
4467 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) context;
4468 int rc;
4469
4470 if ((rc = xmlParseChunk(ctxt, NULL, 0, 1)) != 0) {
4471 xmlWriterErrMsgInt(NULL, XML_ERR_INTERNAL_ERROR,
4472 "xmlTextWriterCloseDocCallback : XML error %d !\n",
4473 rc);
4474 return -1;
4475 }
4476
4477 return 0;
4478}
4479
4480/**
4481 * xmlTextWriterVSprintf:

Callers

nothing calls this directly

Calls 1

xmlParseChunkFunction · 0.85

Tested by

no test coverage detected