* 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. */
| 2225 | * Returns the number of byte written or -1 in case of error. |
| 2226 | */ |
| 2227 | int |
| 2228 | xmlSaveClose(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: |
no test coverage detected