Re: Wrapping FastCGI - Function howto?
- Posted by gshingles <gshingles at gmail.??m> Apr 23, 2008
- 707 views
Jeremy Cowgar wrote: > > Ok, here is an example C usage: > > FCGX_ParamArray envp; > while (FCGX_Accept(&in, &out, &err, &envp) >= 0) { ... } > > > FCGX_ParamArray = typedef char **FCGX_ParamArray; > > I'm just drawing at straws, allocating, allocating strings, string arrays, > poking, > poking4, etc... nothing work so far and I realize my method is terrible, but > I'm not sure what to give it, thus I was hoping with wild guesses I'd get > lucky, > but not yet. Where I come from envp is the pointer to the environment variables. It if is that then it's a pointer to a null terminated array of null terminated strings ie char **envp; This would make sense for a CGI library, maybe it wants a pointer to the environment block, or maybe it wants to give you one from where the query is coming from? Gary