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

Function fopen_sym_file

src/files.c:2610–2624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2608extern const char *const known_restrictions[]; /* symbols.c */
2609
2610staticfn FILE *
2611fopen_sym_file(void)
2612{
2613 FILE *fp;
2614
2615 fp = fopen_datafile(SYMBOLS, "r",
2616#ifdef WIN32
2617 SYSCONFPREFIX
2618#else
2619 HACKPREFIX
2620#endif
2621 );
2622
2623 return fp;
2624}
2625
2626/*
2627 * Returns 1 if the chosen symset was found and loaded.

Callers 1

read_sym_fileFunction · 0.85

Calls 1

fopen_datafileFunction · 0.70

Tested by

no test coverage detected