MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlTextWriterWriteVFormatCDATA

Function xmlTextWriterWriteVFormatCDATA

ThirdParty/libxml2/vtklibxml2/xmlwriter.c:2756–2774  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

2754 * Returns the bytes written (may be 0 because of buffering) or -1 in case of error
2755 */
2756int
2757xmlTextWriterWriteVFormatCDATA(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:

Callers 1

Calls 2

xmlTextWriterVSprintfFunction · 0.85
xmlTextWriterWriteCDATAFunction · 0.85

Tested by

no test coverage detected