* 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 */
| 1819 | * Returns the new parser output or NULL |
| 1820 | */ |
| 1821 | xmlOutputBufferPtr |
| 1822 | xmlOutputBufferCreateFile(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: |
no test coverage detected