rmdir

Removes a directory file.

Format

#include  <unistd.h>

int rmdir  (const char *path);

Arguments

path
A directory path name.

Description

This function removes a directory file whose name is specified in the path argument. The directory is removed only if it is empty.

Restriction

When using OpenVMS format names, the path argument must be in the form directory.dir.

Return Values
Indicates success. 
-1  An error occurred; errno is set to indicate the error. 


Previous Page | Next Page | Table of Contents | Index