* xmlTextWriterWriteVFormatDTD: * @writer: the xmlTextWriterPtr * @name: the name of the DTD * @pubid: the public identifier, which is an alternative to the system identifier * @sysid: the system identifier, which is the URI of the DTD * @format: format string (see printf) * @argptr: pointer to the first member of the variable argument list. * * Write a DTD with a formatted markup de
| 3069 | * Returns the bytes written (may be 0 because of buffering) or -1 in case of error |
| 3070 | */ |
| 3071 | int |
| 3072 | xmlTextWriterWriteVFormatDTD(xmlTextWriterPtr writer, |
| 3073 | const xmlChar * name, |
| 3074 | const xmlChar * pubid, |
| 3075 | const xmlChar * sysid, |
| 3076 | const char *format, va_list argptr) |
| 3077 | { |
| 3078 | int rc; |
| 3079 | xmlChar *buf; |
| 3080 | |
| 3081 | if (writer == NULL) |
| 3082 | return -1; |
| 3083 | |
| 3084 | buf = xmlTextWriterVSprintf(format, argptr); |
| 3085 | if (buf == NULL) |
| 3086 | return -1; |
| 3087 | |
| 3088 | rc = xmlTextWriterWriteDTD(writer, name, pubid, sysid, buf); |
| 3089 | |
| 3090 | xmlFree(buf); |
| 3091 | return rc; |
| 3092 | } |
| 3093 | |
| 3094 | /** |
| 3095 | * xmlTextWriterWriteDTD: |
no test coverage detected