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

Function file_exists

sys/windows/windsys.c:1019–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017}
1018
1019boolean
1020file_exists(const char *path)
1021{
1022 struct stat sb;
1023
1024 /* Just see if it's there */
1025 if (stat(path, &sb)) {
1026 return FALSE;
1027 }
1028 return TRUE;
1029}
1030
1031void
1032set_default_prefix_locations(const char *programPath UNUSED)

Callers 5

MAINFunction · 0.70
copy_fileFunction · 0.70
update_fileFunction · 0.70
copy_symbols_contentFunction · 0.70
folder_file_existsFunction · 0.70

Calls 1

statClass · 0.70

Tested by

no test coverage detected