cgiwrap_init_emu (3) Linux Manual Page
cgiwrap_init_emu – initialize cgiwrap for emulated use
Synopsis
#include <cgi/cgiwrap.h>
void cgiwrap_init_emu (void *data, READ_FUNC read_cb,
WRITEF_FUNC writef_cb, WRITE_FUNC write_cb, GETENV_FUNC getenv_cb,
PUTENV_FUNC putenv_cb, ITERENV_FUNC iterenv_cb);
Arguments
data – user data to be passed to the specified callbacksread_cb – a cb to replace fread(stdin)
writef_cb – a cb to repalce fprintf(stdout)
write_cb – a cb to replace fwrite(stdout)
getenv_cb – a cb to replace getenv
putenv_cb – a cb to replace putenv
iterenv_cb – a cb to replace the default environment iteration
function (which just wraps walking the envp array)
