* xmlTextWriterWriteVFormatRaw: * @writer: the xmlTextWriterPtr * @format: format string (see printf) * @argptr: pointer to the first member of the variable argument list. * * Write a formatted raw xml text. * * Returns the bytes written (may be 0 because of buffering) or -1 in case of error */
| 1310 | * Returns the bytes written (may be 0 because of buffering) or -1 in case of error |
| 1311 | */ |
| 1312 | int |
| 1313 | xmlTextWriterWriteVFormatRaw(xmlTextWriterPtr writer, const char *format, |
| 1314 | va_list argptr) |
| 1315 | { |
| 1316 | int rc; |
| 1317 | xmlChar *buf; |
| 1318 | |
| 1319 | if (writer == NULL) |
| 1320 | return -1; |
| 1321 | |
| 1322 | buf = xmlTextWriterVSprintf(format, argptr); |
| 1323 | if (buf == NULL) |
| 1324 | return -1; |
| 1325 | |
| 1326 | rc = xmlTextWriterWriteRaw(writer, buf); |
| 1327 | |
| 1328 | xmlFree(buf); |
| 1329 | return rc; |
| 1330 | } |
| 1331 | |
| 1332 | /** |
| 1333 | * xmlTextWriterWriteRawLen: |
no test coverage detected