Annotation of coherent/d/bin/pwd.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Rec'd from Lauren Weinstein, 7-16-84.
        !             3:  * Print working directory
        !             4:  */
        !             5: 
        !             6: #include <stdio.h>
        !             7: 
        !             8: main()
        !             9: {
        !            10:        register char *wd;
        !            11:        char *getwd();
        !            12: 
        !            13:        if ((wd = getwd()) == NULL) {
        !            14:                perror("pwd");
        !            15:                exit(1);
        !            16:        }
        !            17:        printf("%s\n", wd);
        !            18:        exit(0);
        !            19: }

unix.superglobalmegacorp.com

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