* xmlTextWriterFlush: * @writer: the xmlTextWriterPtr * * Flush the output buffer. * * Returns the bytes written (may be 0 because of buffering) or -1 in case of error */
| 4221 | * Returns the bytes written (may be 0 because of buffering) or -1 in case of error |
| 4222 | */ |
| 4223 | int |
| 4224 | xmlTextWriterFlush(xmlTextWriterPtr writer) |
| 4225 | { |
| 4226 | int count; |
| 4227 | |
| 4228 | if (writer == NULL) |
| 4229 | return -1; |
| 4230 | |
| 4231 | if (writer->out == NULL) |
| 4232 | count = 0; |
| 4233 | else |
| 4234 | count = xmlOutputBufferFlush(writer->out); |
| 4235 | |
| 4236 | return count; |
| 4237 | } |
| 4238 | |
| 4239 | /** |
| 4240 | * xmlTextWriterClose: |
no test coverage detected