[edit] Notes On POSIX systems, the environment variables are also accessible through the global variable environ, declared as extern char **environ; in, and through the optional third argument, envp, of the main function.