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

1.1       root        1: static char *sccsid = "@(#)rmdir.c     4.7 (Berkeley) 12/19/82";
                      2: /*
                      3:  * Remove directory
                      4:  */
                      5: #include <stdio.h>
                      6: 
                      7: main(argc,argv)
                      8:        int argc;
                      9:        char **argv;
                     10: {
                     11:        int errors = 0;
                     12: 
                     13:        if (argc < 2) {
                     14:                fprintf(stderr, "rmdir: arg count\n");
                     15:                exit(1);
                     16:        }
                     17:        while (--argc)
                     18:                if (rmdir(*++argv) < 0) {
                     19:                        fprintf(stderr, "rmdir: ");
                     20:                        perror(*argv);;
                     21:                        errors++;
                     22:                }
                     23:        exit(errors != 0);
                     24: }

unix.superglobalmegacorp.com

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