From: S2200253 AT nickel DOT laurentian DOT ca Date: Fri, 13 Jun 1997 14:06:06 +0000 (*) Subject: env. printing program To: djgpp AT delorie DOT com Message-id: <01IK0YU6R8UQ8ZQRTI@NICKEL.LAURENTIAN.CA> MIME-version: 1.0 Content-type: TEXT/PLAIN Content-transfer-encoding: 7BIT Precedence: bulk Here's a simple little program to print out your current environment settings. Timothy Robb Enjoy... /* A simple program to print out environment settings */ #include main(int argc, char *argv[], char *env[]) { int i=0; char **ep = env; printf("Environment variables are :\n"); while( *ep ) printf("%s\n", *ep++); }