Declaration:
int rmdir(char path[]);
Description
Removes a directory.
rmdir deletes the directory, whose path is given by path. The directory named by path:
must be empty
must not be the current working directory
must not be the root directory
Returned Value
rmdir will return 0, if the directory is successfully deleted. The returned value of -1 indicates an error and the errno global variable contains one of the following values:
EACCES Permission denied
ENOENT Path or file function not found
|