mkdir NAME mkdir - Create a directory SYNOPSIS int error = mkdir(dirname) char *dirname; FUNCTION mkdir creates a new directory. It returns 0 if successful, -1 if not (with errno set to an error code). EXAMPLE main() { int r; r = mkdir("T:tmpdir"); if (r == 0) puts("Created T:tmpdir successfully"); else puts("Unable to create directory T:tmpdir"); } INPUTS char *dirname; filename of directory to create RESULTS int r; 0 if no error, < 0 if error