--- Michael Wolf <[EMAIL PROTECTED]> wrote:
> On Thu, Dec 07, 2000 at 03:29:11PM -0800, Marco
> DiPlacido wrote:
> > i'm in the process of comparing the performance of
> > mod_perl vs. C cgi's (not to be confused with
> apache C
> > modules :) ). how on earth do i get at the
> > QUERY_STRING under C? is there a C lib out there
> to
> > handle parsing this string? it's easy enough
> with C
> > apache modules but i don't want to go there yet.
> > sorry for the somewhat unrelated post.
>
> QUERY_STRING is an environment variable, regardless
> of the language you're
> using.
i'm aware of that my man! i was just wondering if
someone had some C code that is the equivalent of the
function CGI::Util::unescape in perl.
> In C, you can get it using getenv(3), at
> least on a Unix machine. I
> wouldn't have a clue on Windows. (In fact, I don't
> know if Windows even has
> environment variables.)
sure windows does... just type 'set' at the command
line. you can also get at them thru the control
panel.
>
> Lots of libraries to help you do that sort of thing,
> or you could roll your
> own. String handling in C is rather non-fun,
> though, especially if you
> eschew lex.
i just found some code online that handles GET's (i.e.
QUERY_STRING parsing).
>
> I'd stick with something interpreted for writing
> CGIs.
right on (i love perl), i'm just doing some
benchmarking.
>
> mike
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/