HTML Tidy  4.9.32
The HTACG Tidy HTML Project
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Document Save Functions

Save currently parsed document to the given output sink. More...

Functions

int TIDY_CALL tidySaveBuffer (TidyDoc tdoc, TidyBuffer *buf)
 Save to given TidyBuffer object. More...
 
int TIDY_CALL tidySaveFile (TidyDoc tdoc, ctmbstr filename)
 Save to named file. More...
 
int TIDY_CALL tidySaveSink (TidyDoc tdoc, TidyOutputSink *sink)
 Save to given generic output sink. More...
 
int TIDY_CALL tidySaveStdout (TidyDoc tdoc)
 Save to standard output (FILE*) More...
 
int TIDY_CALL tidySaveString (TidyDoc tdoc, tmbstr buffer, uint *buflen)
 Save document to application buffer. More...
 

Detailed Description

File name and string/buffer functions provided for convenience.

Function Documentation

int TIDY_CALL tidySaveBuffer ( TidyDoc  tdoc,
TidyBuffer buf 
)
int TIDY_CALL tidySaveFile ( TidyDoc  tdoc,
ctmbstr  filename 
)
int TIDY_CALL tidySaveSink ( TidyDoc  tdoc,
TidyOutputSink sink 
)
int TIDY_CALL tidySaveStdout ( TidyDoc  tdoc)
int TIDY_CALL tidySaveString ( TidyDoc  tdoc,
tmbstr  buffer,
uint *  buflen 
)

If buffer is not big enough, ENOMEM will be returned and the necessary buffer size will be placed in *buflen.