* 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 */
| 1439 | * Returns the bytes written (may be 0 because of buffering) or -1 in case of error |
| 1440 | */ |
| 1441 | int |
| 1442 | xmlTextWriterWriteVFormatString(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: |
no test coverage detected