◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── The rmdir function deletes the directory specified by <dirname>. The directory must be empty, and it must not be the current working directory or the root directory. Return Value The rmdir function returns 0 if the directory is successfully deleted. A return value of -1 indicates an error, and errno is set to either EACCES or ENOENT. -♦-