Function mkdir

Top 

Declaration:

int mkdir(char path[]);

Description

Creates a directory. mkdir creates a new directory from the given path name path.

Returned Value

mkdir will return 0, if the new directory is created.

The returned value of -1 indicates an error and the errno global variable contains one of the following values:

EACCES       Permission denied

ENOENT       No such file or directory