MCPcopy Index your code
hub / github.com/NetHack/NetHack / fopen_datafile

Function fopen_datafile

src/files.c:443–451  ·  view source on GitHub ↗

fopen a file, with OS-dependent bells and whistles */ NOTE: a simpler version of this routine also exists in util/dlb_main.c */

Source from the content-addressed store, hash-verified

441/* fopen a file, with OS-dependent bells and whistles */
442/* NOTE: a simpler version of this routine also exists in util/dlb_main.c */
443FILE *
444fopen_datafile(const char *filename, const char *mode, int prefix)
445{
446 FILE *fp;
447
448 filename = fqname(filename, prefix, prefix == TROUBLEPREFIX ? 3 : 0);
449 fp = fopen(filename, mode);
450 return fp;
451}
452#endif /* !SFCTOOL */
453
454/* ---------- EXTERNAL FILE SUPPORT ----------- */

Callers 10

toptenFunction · 0.70
prscoreFunction · 0.70
get_rnd_toptenentryFunction · 0.70
fopen_sym_fileFunction · 0.70
paniclogFunction · 0.70
testinglogFunction · 0.70
livelog_addFunction · 0.70
open_libraryFunction · 0.70
dlb_fopenFunction · 0.70
init_tilesFunction · 0.50

Calls 1

fqnameFunction · 0.85

Tested by

no test coverage detected