/ Published in: C++

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// char * getenv(const char * name); // int putenv(const char * var); // getenv example std::string HOME_PATH = getenv("HOME"); // putenv example int stat = putenv("TEMP="/tmp"); if( !stat ) { cout<<"failed to define environment variable"<<endl; }
Comments
