Files
leaningtech--webvm/examples/c/env.c
T
2026-07-13 12:22:17 +08:00

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