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

Function xmlSaveClose

ThirdParty/libxml2/vtklibxml2/xmlsave.c:2227–2236  ·  view source on GitHub ↗

* xmlSaveClose: * @ctxt: a document saving context * * Close a document saving context, i.e. make sure that all bytes have * been output and free the associated data. * * Returns the number of byte written or -1 in case of error. */

Source from the content-addressed store, hash-verified

2225 * Returns the number of byte written or -1 in case of error.
2226 */
2227int
2228xmlSaveClose(xmlSaveCtxtPtr ctxt)
2229{
2230 int ret;
2231
2232 if (ctxt == NULL) return(-1);
2233 ret = xmlSaveFlush(ctxt);
2234 xmlFreeSaveCtxt(ctxt);
2235 return(ret);
2236}
2237
2238/**
2239 * xmlSaveFinish:

Callers 1

parseAndPrintFileFunction · 0.85

Calls 2

xmlSaveFlushFunction · 0.85
xmlFreeSaveCtxtFunction · 0.85

Tested by

no test coverage detected