Annotation of coherent/d/usr/src/examples/getenv.c, revision 1.1.1.1

1.1       root        1: #include <stdio.h>
                      2: 
                      3: main()
                      4: {
                      5:        char *env;
                      6:        extern char *getenv();
                      7: 
                      8:        if ((env = getenv("PATH")) == NULL) {
                      9:                printf("Sorry, cannot find PATH\n");
                     10:                exit(1);
                     11:        }
                     12:        printf("PATH = %s\n", env);
                     13:        exit(0);
                     14: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.