Thanks in advance,
Prashanth
> Hello,
> I am new to OS2 environment..please answer the following questions:
> 1>How do I display all environment variables[including user-defined
> env variable] for a session on OS/2.
At a command line:
SET|more <enter>
> 2>How do I get a user-defined environment variable programmatically
> using C?
No idea. But ask this question in comp.os.os2.programmer. (comp.os.os2
has nearly no traffic these days.)
--
Good luck,
Buddy
Buddy Donnelly <buddy.d...@verizon.net>
> I am new to OS2 environment..please answer the following questions:
> 1>How do I display all environment variables[including user-defined
> env variable] for a session on OS/2.
Type SET (with no parameters) at the command line.
> 2>How do I get a user-defined environment variable programmatically
> using C?
#include <stdlib.h>
char *strValue = getenv("WHATEVER_VARIABLE_YOU_WANT");
Hope that helps!
-Lisa