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

Function xmlTextWriterWriteVFormatString

ThirdParty/libxml2/vtklibxml2/xmlwriter.c:1441–1459  ·  view source on GitHub ↗

* xmlTextWriterWriteVFormatString: * @writer: the xmlTextWriterPtr * @format: format string (see printf) * @argptr: pointer to the first member of the variable argument list. * * Write a formatted 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

1439 * Returns the bytes written (may be 0 because of buffering) or -1 in case of error
1440 */
1441int
1442xmlTextWriterWriteVFormatString(xmlTextWriterPtr writer,
1443 const char *format, va_list argptr)
1444{
1445 int rc;
1446 xmlChar *buf;
1447
1448 if ((writer == NULL) || (format == NULL))
1449 return -1;
1450
1451 buf = xmlTextWriterVSprintf(format, argptr);
1452 if (buf == NULL)
1453 return -1;
1454
1455 rc = xmlTextWriterWriteString(writer, buf);
1456
1457 xmlFree(buf);
1458 return rc;
1459}
1460
1461/**
1462 * xmlTextWriterWriteString:

Callers 1

Calls 2

xmlTextWriterVSprintfFunction · 0.85
xmlTextWriterWriteStringFunction · 0.85

Tested by

no test coverage detected