Created
April 23, 2014 09:09
-
-
Save rongyi/11208112 to your computer and use it in GitHub Desktop.
print environ
This file contains 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 <unistd.h> | |
#include <stdio.h> | |
extern char **environ; | |
int main() | |
{ | |
int i = 0; | |
while(environ[i]) { | |
printf("%s\n", environ[i++]); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment