webvm/examples/c/env.c
2022-01-31 22:00:49 +01:00

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;
}