|bool||qSedFile (Q_ENTRY *entry, const char *filepath, FILE *fpout)|
|bool||qSedStr (Q_ENTRY *entry, const char *srcstr, FILE *fpout)|
filename is an input(target) file while fpout stands for output streams. When you wish to display the results in files, open files in "w" and then, hand over the corresponding file pointers. And if you wish to display them on-screen, just specify stdout.
It interprets the SSI grammar. (Currently, only [an error occurred while processing this directive] is supported.) If there is the following lines in a document, the corresponding document is included in the display. And the replacement and SSI functions are valid for the included document. (Cascading)
Note) The included file can be marked by relative paths on the basis of the location where CGI is executed. Or it may be marked by system absolute paths.
If you wish to use the SSI function only without replacing character strings, transmit the NULL value using the arg argument as follows:
ex) qSedFile(NULL, "streamedit.html.in", stdout);
Definition in file qSed.c.