Go to the first, previous, next, last section, table of contents.


rmdir

Syntax

#include <unistd.h>

int rmdir(const char *dirname);

Description

This function removes directory dirname. The directory must be empty.

Return Value

Zero if the directory was removed, nonzero on failure.

Portability

not ANSI, POSIX

Example

rmdir("/tmp/datadir");


Go to the first, previous, next, last section, table of contents.