1// the third parameter (envp) is a NULL terminated array of NULL terminated strings
2int main(int argc, char **argv, char **envp)
3{
4 for (char **env = envp; *env != 0; env++)
5 {
6 char *thisEnv = *env;
7 printf("%s\n", thisEnv);
8 }
9 return 0;
10}
11