MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlTextWriterWriteVFormatDTD

Function xmlTextWriterWriteVFormatDTD

ThirdParty/libxml2/vtklibxml2/xmlwriter.c:3071–3092  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

3069 * Returns the bytes written (may be 0 because of buffering) or -1 in case of error
3070 */
3071int
3072xmlTextWriterWriteVFormatDTD(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:

Callers 1

Calls 2

xmlTextWriterVSprintfFunction · 0.85
xmlTextWriterWriteDTDFunction · 0.85

Tested by

no test coverage detected