getenv() retrieves the value of an environment variable, and putenv() changes or adds an environment variable to the current environment. setenv() is not part of standard C (though it exists as a BSD/gnu extension), and readenv()/writeenv() do not exist.