* 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 */
| 1411 | * Returns the bytes written (may be 0 because of buffering) or -1 in case of error |
| 1412 | */ |
| 1413 | int |
| 1414 | xmlTextWriterWriteFormatString(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: |
nothing calls this directly
no test coverage detected