* xmlBufIsEmpty: * @buf: the buffer * * Tell if a buffer is empty * * Returns 0 if no, 1 if yes and -1 in case of error */
| 607 | * Returns 0 if no, 1 if yes and -1 in case of error |
| 608 | */ |
| 609 | int |
| 610 | xmlBufIsEmpty(const xmlBufPtr buf) |
| 611 | { |
| 612 | if ((!buf) || (buf->error)) |
| 613 | return(-1); |
| 614 | CHECK_COMPAT(buf) |
| 615 | |
| 616 | return(buf->use == 0); |
| 617 | } |
| 618 | |
| 619 | /** |
| 620 | * xmlBufResize: |
no outgoing calls
no test coverage detected