header file: unistd.h
int rmdir(const char *dirname);
header file: direct.h
int _rmdir(const char *dirname);
This function removes the directory specified by dirname.
The Windows and Unix versions of this function differ only in
name and the needed header file.
Example of Use in Windows
#include <direct.h>
int main(void)
{
if( _rmdir( "\\testtmp" ) == 0 ) {
printf("Directory '\\testtmp' was successfully removed\n");
}
else
printf("Problem removing directory '\\testtmp'\n");
}