* xmlSaveFinish: * @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. * * Available since 2.13.0. * * Returns an xmlParserErrors code. */
| 2247 | * Returns an xmlParserErrors code. |
| 2248 | */ |
| 2249 | int |
| 2250 | xmlSaveFinish(xmlSaveCtxtPtr ctxt) |
| 2251 | { |
| 2252 | int ret; |
| 2253 | |
| 2254 | if (ctxt == NULL) |
| 2255 | return(XML_ERR_INTERNAL_ERROR); |
| 2256 | xmlSaveFlush(ctxt); |
| 2257 | ret = ctxt->buf->error; |
| 2258 | xmlFreeSaveCtxt(ctxt); |
| 2259 | return(ret); |
| 2260 | } |
| 2261 | |
| 2262 | /** |
| 2263 | * xmlSaveSetEscape: |
no test coverage detected