[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getenv vs. QtmhGetEnv



getenv() is part of the core operating system, and always available.

QtmhGetEnv() is part of the IBM HTTP server, so isn't available unless 
that feature is installed.

There aren't any other pros/cons that I'm aware of.  I strongly suspect 
that QtmhGetEnv calls getenv() under the covers.  I'm pretty sure it was 
purely designed as a wrapper to make things easier for languages that 
don't support pointers or null-terminated strings.  (Which is not a 
problem from RPG.)

Can I assume this question is somehow related to FTPAPI or HTTPAPI?


On 6/12/2012 4:11 PM, Robert Upshall wrote:
>     Can anybody give me the pros and cons of one API vs. the other?  I'm
>     only using to get REQUEST_METHOD and CONTENT_LENGTH, I have both
>     working, I was wondering if one was better than the other?
>     I have read in a few places that getenv should be faster than
>     QtmhGetEnv, can anybody confirm this?
>
>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------