Created
December 10, 2015 11:31
-
-
Save x56/93e40f2a080fd59febb1 to your computer and use it in GitHub Desktop.
env_test.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char *argv[], char *envp[]) | |
{ | |
int i = 0; | |
char *env = NULL; | |
while ((env = envp[i++]) != NULL) { | |
printf("%s\n", env); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment