Skip to content

Instantly share code, notes, and snippets.

@x56
Created December 10, 2015 11:31
env_test.c
#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