Re: newbie question, help heeded
Pavel Korshikov <[email protected]> Wed, 22 Dec 2010 21:25:38 +0000 (UTC)
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <[email protected]> |
Eduard Bareev <eduard <at> bareev.ru> writes:
>
cut
>
Hi Eduard,
just enumerate envp array like this:
static string penv(const char * const * envp)
{
string retValue = "<PRE>\n";
for ( ; *envp; ++envp)
{
retValue += *envp;
retValue += "\n";
}
retValue += "</PRE>\n";
return retValue;
}
string environmentData = penv(request.envp);
With best regards,
Pavel Korshikov
http://www.itreport.eu