* xmlBufCat: * @buf: the buffer to add to * @str: the #xmlChar string * * Append a zero terminated string to an XML buffer. * * Returns 0 successful, a positive error code number otherwise * and -1 in case of internal or API error. */
| 810 | * and -1 in case of internal or API error. |
| 811 | */ |
| 812 | int |
| 813 | xmlBufCat(xmlBufPtr buf, const xmlChar *str) { |
| 814 | if ((buf == NULL) || (buf->error)) |
| 815 | return(-1); |
| 816 | CHECK_COMPAT(buf) |
| 817 | if (str == NULL) return -1; |
| 818 | return xmlBufAdd(buf, str, -1); |
| 819 | } |
| 820 | |
| 821 | /** |
| 822 | * xmlBufFromBuffer: |
no test coverage detected