Annotation of researchv10no/cmd/pwd.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Print working (current) directory
        !             3:  */
        !             4: #include <stdio.h>
        !             5: 
        !             6: char *getwd();
        !             7: 
        !             8: main()
        !             9: {
        !            10:        char pathname[512];
        !            11: 
        !            12:        if (getwd(pathname) == NULL) {
        !            13:                fprintf(stderr, "pwd: %s\n", pathname);
        !            14:                exit(1);
        !            15:        }
        !            16:        printf("%s\n", pathname);
        !            17:        exit(0);
        !            18: }

unix.superglobalmegacorp.com

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