12 lines
287 B
C
12 lines
287 B
C
#include <stdio.h>
|
|
|
|
// Most of the C compilers support a third parameter to main which
|
|
// store all envorinment variables
|
|
int main(int argc, char *argv[], char * envp[])
|
|
{
|
|
int i;
|
|
for (i = 0; envp[i] != NULL; i++)
|
|
printf("\n%s", envp[i]);
|
|
getchar();
|
|
return 0;
|
|
}
|