source: trunk/third/nmh/sbr/remdir.c @ 12455

Revision 12455, 326 bytes checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1
2/*
3 * remdir.c -- remove a directory
4 *
5 * $Id: remdir.c,v 1.1.1.1 1999-02-07 18:14:09 danw Exp $
6 */
7
8#include <h/mh.h>
9
10
11int
12remdir (char *dir)
13{
14    context_save();     /* save the context file */
15    fflush(stdout);
16
17    if (rmdir(dir) == -1) {
18        admonish (dir, "unable to remove directory");
19        return 0;
20    }
21    return 1;
22}
Note: See TracBrowser for help on using the repository browser.