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