Annotation of 42BSD/bin/pwd.c, revision 1.1.1.1

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

unix.superglobalmegacorp.com

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