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

Function xmlTextWriterWriteFormatString

ThirdParty/libxml2/vtklibxml2/xmlwriter.c:1413–1429  ·  view source on GitHub ↗

* xmlTextWriterWriteFormatString: * @writer: the xmlTextWriterPtr * @format: format string (see printf) * @...: extra parameters for the format * * 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

1411 * Returns the bytes written (may be 0 because of buffering) or -1 in case of error
1412 */
1413int
1414xmlTextWriterWriteFormatString(xmlTextWriterPtr writer, const char *format,
1415 ...)
1416{
1417 int rc;
1418 va_list ap;
1419
1420 if ((writer == NULL) || (format == NULL))
1421 return -1;
1422
1423 va_start(ap, format);
1424
1425 rc = xmlTextWriterWriteVFormatString(writer, format, ap);
1426
1427 va_end(ap);
1428 return rc;
1429}
1430
1431/**
1432 * xmlTextWriterWriteVFormatString:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected