IMPORT_C int mkdir(const char *_path, mode_t _mode);
Description
Creates a new directory with the specified path name. The file permissions of the new directory are initialized from the specified
mode.
Parameters
const char *_path |
Specifies the name of the new directory. The path name can be absolute or relative. If the specified path name is relative,
the directory is created based upon your current working directory.
|
mode_t _mode |
Is a bitwise-OR field that specifies what permissions the directory has when it is created.
|
|
Return value
int |
On Success, returns 0. On Failure, returns -1, errno may be set. Does not create a directory.
|
|