1 2 3 4 5 6 7 8 9
#include <unistd.h> #include <stdio.h> int main(int, char**) { for (size_t i = 0; environ[i]; ++i) printf("%s\n", environ[i]); return 0; }