Deletes a directory.
#include <direct.h>
int rmdir (const char *dirname);
Parameters
dirname
- Pathname of the directory to be removed. The directory must be empty, and it must not be the current working directory or the root directory.
Return Values
- 0 (zero).
- Success.
- -1 and the function sets errno to one of these values:
-
EACCES |
The given pathname is not a directory; or the directory is not empty; or the directory is the current working directory or the root directory. |
ENOENT |
Pathname not found. |
- Failure.
Requirements
Versions |
Defined in |
Include |
Link to |
INtime 3.0 |
intime/rt/include/direct.h |
direct.h |
clib.lib |
See Also
mkdir