The MKDIR( ) function attempts to create the directory specified. If the directory creation is successful the returned value is 0. If the directory creation was unsuccessful, a value indicating a DOS error is returned.