cgiprocenv() - parse environment variables


#include "cgi.h"

int cgiprocenv(cp)
CGI *cp;

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.

As it modifies the CGI object's internals, cgiprocenv() may invalidate any previously returned values from getcgi() or cgivar().

getcgi() cgivar()

Copyright © Thunderstone Software     Last updated: Aug 4 2020
Copyright © 2020 Thunderstone Software LLC. All rights reserved.