// the third parameter (envp) is a NULL terminated array of NULL terminated strings
int main(int argc, char **argv, char **envp)
{
for (char **env = envp; *env != 0; env++)
{
char *thisEnv = *env;
printf("%s
", thisEnv);
}
return 0;
}