#include int main(int argc, char **argv, char **env) { int count = 0; printf("Here are the environmental variables:\n"); while(*env) { printf("var %d = '%s'\n",count,*env); env++; count++; } printf("\n"); printf("Let's walk the stack back until we crash:\n"); char *x = *argv; while(1) { if(*x != '\0') printf("%c",*x); else printf("\n"); x++; } }