setenv()
Sets or updates an environment variable for the current process and any child processes it spawns. Takes three arguments: the variable name, the value, and an overwrite flag. 1 means overwrite if the variable already exists, 0 means leave it unchanged if it exists. |
unsetenv()
Removes an environment variable from the current running program and any child processes it spawns. After calling it the variable no longer exists, so std::getenv() would return nullptr for it. Other programs running on the system are completely unaffected — each process has its own copy of environment variables. |
Cheatography
https://cheatography.com
C++ (C standard library functions) Cheat Sheet (DRAFT) by blakecromar
A cheat sheet listing command C standard library functions C++ can call.
This is a draft cheat sheet. It is a work in progress and is not finished yet.