![]() |
Defines | |
#define | SED_INCLUDE_START "<!--#include file=\"" |
#define | SED_INCLUDE_END "\"-->" |
Functions | |
int | qCountRead (const char *filepath) |
Read counter(integer) from file with advisory file locking. | |
bool | qCountSave (const char *filepath, int number) |
Save counter(integer) to file with advisory file locking. | |
int | qCountUpdate (const char *filepath, int number) |
Increases(or decrease) the counter value as much as specified number with advisory file locking. | |
bool | qSedStr (Q_ENTRY *entry, const char *srcstr, FILE *fpout) |
Perform text transformations on input string. | |
bool | qSedFile (Q_ENTRY *entry, const char *filepath, FILE *fpout) |
Perform text transformations on input file. |
int qCountRead | ( | const char * | filepath | ) |
Read counter(integer) from file with advisory file locking.
filepath | file path |
qCountSave("number.dat", 75); int count = qCountRead("number.dat");
---- number.dat ---- 75 --------------------
bool qCountSave | ( | const char * | filepath, | |
int | number | |||
) |
Save counter(integer) to file with advisory file locking.
filepath | file path | |
number | counter integer value |
qCountSave("number.dat", 75);
int qCountUpdate | ( | const char * | filepath, | |
int | number | |||
) |
Increases(or decrease) the counter value as much as specified number with advisory file locking.
filepath | file path | |
number | how much increase or decrease |
int count; count = qCountUpdate("number.dat", -3);
bool qSedStr | ( | Q_ENTRY * | entry, | |
const char * | srcstr, | |||
FILE * | fpout | |||
) |
Perform text transformations on input string.
entry | arguments to be transformed | |
srcstr | source string | |
fpout | output stream |
bool qSedFile | ( | Q_ENTRY * | entry, | |
const char * | filepath, | |||
FILE * | fpout | |||
) |
Perform text transformations on input file.
entry | arguments to be transformed | |
filepath | socket descriptor | |
fpout | output stream |
<!--#include file="streamedit-header.html.in"--> <p>Hi <b>${NAME}</b>. <p>You got a really cool hobby. <br>I'm sure that your hobby, <b>${HOBBY}</b>, can give you more fun in your life time. <p>Bye :) <!--#include file="streamedit-tailer.html.in"-->