Makes a directory.
#include <extras/sys/stat.h> int mkdir(const char *path, int mode); int _mkdir(const char *path);
path
The path name, including the new directory name.
mode
The open mode. Ignored.
These functions create the new folder specified by path. It ignores the argument mode.
If successful, these functions returns zero. If they encounter an error, these functions 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 (mkdir("Asok", 0) == 0) printf("Directory 'Asok' is created."); return 0; }