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

Function xmlTextWriterWriteVFormatRaw

ThirdParty/libxml2/vtklibxml2/xmlwriter.c:1312–1330  ·  view source on GitHub ↗

* xmlTextWriterWriteVFormatRaw: * @writer: the xmlTextWriterPtr * @format: format string (see printf) * @argptr: pointer to the first member of the variable argument list. * * Write a formatted raw xml text. * * Returns the bytes written (may be 0 because of buffering) or -1 in case of error */

Source from the content-addressed store, hash-verified

1310 * Returns the bytes written (may be 0 because of buffering) or -1 in case of error
1311 */
1312int
1313xmlTextWriterWriteVFormatRaw(xmlTextWriterPtr writer, const char *format,
1314 va_list argptr)
1315{
1316 int rc;
1317 xmlChar *buf;
1318
1319 if (writer == NULL)
1320 return -1;
1321
1322 buf = xmlTextWriterVSprintf(format, argptr);
1323 if (buf == NULL)
1324 return -1;
1325
1326 rc = xmlTextWriterWriteRaw(writer, buf);
1327
1328 xmlFree(buf);
1329 return rc;
1330}
1331
1332/**
1333 * xmlTextWriterWriteRawLen:

Callers 1

Calls 2

xmlTextWriterVSprintfFunction · 0.85
xmlTextWriterWriteRawFunction · 0.85

Tested by

no test coverage detected