MCPcopy Create free account
hub / github.com/NetHack/NetHack / create_directory

Function create_directory

sys/windows/windsys.c:947–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947void
948create_directory(const char *path)
949{
950 BOOL dres = CreateDirectoryA(path, NULL);
951
952 if (!dres) {
953 DWORD dw = GetLastError();
954
955 if (dw != ERROR_ALREADY_EXISTS)
956 error("Unable to create directory '%s'", path);
957 }
958}
959
960RESTORE_WARNING_UNREACHABLE_CODE
961

Callers 1

build_known_folder_pathFunction · 0.85

Calls 1

errorFunction · 0.50

Tested by

no test coverage detected