base/libs/qdecoder/qSed.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <stdarg.h>
#include "qDecoder.h"
#include "qInternal.h"

Include dependency graph for qSed.c:

Go to the source code of this file.




bool qSedFile (Q_ENTRY *entry, const char *filepath, FILE *fpout)
bool qSedStr (Q_ENTRY *entry, const char *srcstr, FILE *fpout)

Detailed Description

Server Side Include and Variable Replacement API

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, "", stdout);

Definition in file qSed.c.

Generated on Thu Jul 20 07:00:42 2017 for JSOC_Documentation by  doxygen