Removes a directory.
#include <extras/sys/stat.h> int rmdir(const char *path);
path
The path name, including the directory name to be removed.
This function removes a folder specified by path.
If successful, this function returns zero. If it encounters an error, this function returns -1 and set errno.
This facility may not be available on some configurations of the EWL.
#include <stdio.h> #include <extras/sys/stat.h> int main(void) { if (rmdir("Asok", 0) == 0) printf("Directory 'Asok' was removed."); return 0; }