* xmlTextWriterWriteFormatPI: * @writer: the xmlTextWriterPtr * @target: PI target * @format: format string (see printf) * @...: extra parameters for the format * * Write a formatted PI. * * Returns the bytes written (may be 0 because of buffering) or -1 in case of error */
| 2514 | * Returns the bytes written (may be 0 because of buffering) or -1 in case of error |
| 2515 | */ |
| 2516 | int |
| 2517 | xmlTextWriterWriteFormatPI(xmlTextWriterPtr writer, const xmlChar * target, |
| 2518 | const char *format, ...) |
| 2519 | { |
| 2520 | int rc; |
| 2521 | va_list ap; |
| 2522 | |
| 2523 | va_start(ap, format); |
| 2524 | |
| 2525 | rc = xmlTextWriterWriteVFormatPI(writer, target, format, ap); |
| 2526 | |
| 2527 | va_end(ap); |
| 2528 | return rc; |
| 2529 | } |
| 2530 | |
| 2531 | /** |
| 2532 | * xmlTextWriterWriteVFormatPI: |
nothing calls this directly
no test coverage detected