How to create a directory with C code (other than the method of forking and using mkdir) ? Is there anything like dirent.h? dirent.h only allows to read directories. (withou
Use the mkdir function.
#include #include int mkdir(const char *pathname, mode_t mode);