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

Function xmlOutputBufferCreateFile

ThirdParty/libxml2/vtklibxml2/xmlIO.c:1821–1835  ·  view source on GitHub ↗

* xmlOutputBufferCreateFile: * @file: a FILE* * @encoder: the encoding converter or NULL * * Create a buffered output for the progressive saving to a FILE * * buffered C I/O * * Returns the new parser output or NULL */

Source from the content-addressed store, hash-verified

1819 * Returns the new parser output or NULL
1820 */
1821xmlOutputBufferPtr
1822xmlOutputBufferCreateFile(FILE *file, xmlCharEncodingHandlerPtr encoder) {
1823 xmlOutputBufferPtr ret;
1824
1825 if (file == NULL) return(NULL);
1826
1827 ret = xmlAllocOutputBufferInternal(encoder);
1828 if (ret != NULL) {
1829 ret->context = file;
1830 ret->writecallback = xmlFileWrite;
1831 ret->closecallback = xmlFileFlush;
1832 }
1833
1834 return(ret);
1835}
1836
1837/**
1838 * xmlOutputBufferCreateBuffer:

Callers 6

xmlDumpXMLCatalogFunction · 0.85
doXPathDumpFunction · 0.85
htmlNodeDumpFileFormatFunction · 0.85
htmlDocDumpFunction · 0.85
xmlElemDumpFunction · 0.85
xmlDocFormatDumpFunction · 0.85

Calls 1

Tested by

no test coverage detected