Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kcc-6/lib/test/tgtenv.c
There is 1 other file named tgtenv.c in the archive. Click here to see a list.
/* TGTENV - Test GETENV.
*/

#include <stdlib.h>
#include <stdio.h>

main(argc, argv)
int argc;
char **argv;
{
    char *cp;

    if (argc < 2) {
	printf("Usage: tgtenv <env-var> <env-var> ...\n");
	exit(1);
    }
    for (; --argc > 0; ) {
	printf("Environment var \"%s\" => ", *++argv);
	if (cp = getenv(*argv))
	    printf("\"%s\"\n", cp);
	else printf("Not found\n");
    }
}