1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #ifndef lint
8: char copyright[] =
9: "@(#) Copyright (c) 1983 Regents of the University of California.\n\
10: All rights reserved.\n";
11: #endif not lint
12:
13: #ifndef lint
14: static char sccsid[] = "@(#)rmdir.c 5.1 (Berkeley) 4/30/85";
15: #endif not lint
16:
17: /*
18: * Remove directory
19: */
20: #include <stdio.h>
21:
22: main(argc,argv)
23: int argc;
24: char **argv;
25: {
26: int errors = 0;
27:
28: if (argc < 2) {
29: fprintf(stderr, "usage: %s directory ...\n", argv[0]);
30: exit(1);
31: }
32: while (--argc)
33: if (rmdir(*++argv) < 0) {
34: fprintf(stderr, "rmdir: ");
35: perror(*argv);;
36: errors++;
37: }
38: exit(errors != 0);
39: }
Defined functions
main
defined in line
22;
never used
Defined variables