* xmlSaveFlush: * @ctxt: a document saving context * * Flush a document saving context, i.e. make sure that all bytes have * been output. * * Returns the number of byte written or -1 in case of error. */
| 2208 | * Returns the number of byte written or -1 in case of error. |
| 2209 | */ |
| 2210 | int |
| 2211 | xmlSaveFlush(xmlSaveCtxtPtr ctxt) |
| 2212 | { |
| 2213 | if (ctxt == NULL) return(-1); |
| 2214 | if (ctxt->buf == NULL) return(-1); |
| 2215 | return(xmlOutputBufferFlush(ctxt->buf)); |
| 2216 | } |
| 2217 | |
| 2218 | /** |
| 2219 | * xmlSaveClose: |
no test coverage detected