]> diplodocus.org Git - nmh/blob - sbr/remdir.c
Alter mh-chart(7)'s NAME to be lowercase.
[nmh] / sbr / remdir.c
1
2 /*
3 * remdir.c -- remove a directory
4 *
5 * This code is Copyright (c) 2002, by the authors of nmh. See the
6 * COPYRIGHT file in the root directory of the nmh distribution for
7 * complete copyright information.
8 */
9
10 #include <h/mh.h>
11
12
13 int
14 remdir (char *dir)
15 {
16 context_save(); /* save the context file */
17 fflush(stdout);
18
19 if (rmdir(dir) == -1) {
20 admonish (dir, "unable to remove directory");
21 return 0;
22 }
23 return 1;
24 }