[Dev-C++] How to work with envinronment ???
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Wendel <we...@ha...> - 2001-04-09 14:49:28
|
Hi all, ps.: Sorry for my poor english. I'm start to programming...and i'm learn C! :-) I need fo help! Somebody know how to can i do in C to see and get a valeu of one envinronment of O.S ?? :-) I need that it work with NT/9x ! :-) Example... in commando mode (DOS) suppose that i want know the value of enverionment "tmp" then i do: c:\>echo %tmp% c:\>TEMP c:\> How to do it in C ?? Eg.: How to get the value of envinonment tmp and attribute it to a variable of my program ?? Suppose that i had created: char recive_env; And i want get the value of tmp in the operation system and attribute to "recive_env" in my program...to do comparations... How to do it ?? Somebody can help me ?? Give me a example?? Thkz for all Best Regards, [ ]'s |