SYNOPSIS#include "cgi.h"
int cgiprocenv(cp)
CGI *cp;
DESCRIPTION
The cgiprocenv()
function processes the environment variables
so they can be read via getcgi()
/ cgivar()
. It returns
1 on success, 0 on error.
This function usually never needs to be called by the user; it is
called automagically when needed. However, if putenv()
or
other functions are used to modify the environment,
cgiprocenv()
should be called to update the API's internal list
of environment variables.
CAVEATS
As it modifies the CGI
object's internals, cgiprocenv()
may invalidate any previously returned values from getcgi()
or
cgivar()
.
SEE ALSOgetcgi()
cgivar()