header file: sys/stat.h
int mkdir(const char *path, mode_t mode);
header file: direct.h
int _mkdir(const char *dirname);
This function creates a new directory.
The Windows _mkdir() function is almost identical to the POSIX
mkdir(), with the exception that it does not require a parameter to
specify the mode. Windows also provides the _wmkdir() function that
has wide character support.
Example of Use in Windows
#include <direct.h>
int main(void)
{
if( _mkdir( "\\testtmp" ) == 0 ) {
printf("Directory '\\testtmp' was successfully created\n");
}
else
printf("Problem creating directory '\\testtmp'\n");
}