* xmlTextWriterWriteVFormatCDATA: * @writer: the xmlTextWriterPtr * @format: format string (see printf) * @argptr: pointer to the first member of the variable argument list. * * Write a formatted xml CDATA. * * Returns the bytes written (may be 0 because of buffering) or -1 in case of error */
| 2754 | * Returns the bytes written (may be 0 because of buffering) or -1 in case of error |
| 2755 | */ |
| 2756 | int |
| 2757 | xmlTextWriterWriteVFormatCDATA(xmlTextWriterPtr writer, const char *format, |
| 2758 | va_list argptr) |
| 2759 | { |
| 2760 | int rc; |
| 2761 | xmlChar *buf; |
| 2762 | |
| 2763 | if (writer == NULL) |
| 2764 | return -1; |
| 2765 | |
| 2766 | buf = xmlTextWriterVSprintf(format, argptr); |
| 2767 | if (buf == NULL) |
| 2768 | return -1; |
| 2769 | |
| 2770 | rc = xmlTextWriterWriteCDATA(writer, buf); |
| 2771 | |
| 2772 | xmlFree(buf); |
| 2773 | return rc; |
| 2774 | } |
| 2775 | |
| 2776 | /** |
| 2777 | * xmlTextWriterWriteCDATA: |
no test coverage detected