Re: [Dev-C++] How to work with envinronment ???
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Lorenzo <co...@in...> - 2001-04-09 15:12:40
|
You can use the function:
char *getenv(const char *name);
Ex.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char *szTmp = getenv("TMP");
printf("TMP: %s\n", szTmp);
return 0;
}
|