VMS Help
CRTL, rmdir
*Conan The Librarian
|
Removes a directory file.
Format
#include <unistd.h>
int rmdir (const char *path);
path
A directory pathname.
The rmdir function removes a directory file whose name is
specified in the path argument. The directory is removed only
if it is empty.
If path names a symbolic link, then rmdir fails and sets errno to
ENOTDIR.
When using OpenVMS format names, the path argument must be in the
form directory.dir.
0 Indicates success.
-1 An error occurred; errno is set to indicate
the error.