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.
typedef int (*func)(const char *); #ifdef _WIN32 func removeDirectory = _rmdir; #else func removeDirectory = rmdir; #endif