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

Function dump_version_info

src/version.c:493–510  ·  view source on GitHub ↗

called by argcheck(allmain.c) from early_options(sys/xxx/xxxmain.c) */

Source from the content-addressed store, hash-verified

491
492/* called by argcheck(allmain.c) from early_options(sys/xxx/xxxmain.c) */
493void
494dump_version_info(void)
495{
496 char buf[BUFSZ];
497 const char *hname = gh.hname ? gh.hname : "nethack";
498
499 if (strlen(hname) > 33)
500 hname = eos(nhStr(hname)) - 33; /* discard const for eos() */
501 runtime_info_init();
502 Snprintf(buf, sizeof buf, "%-12.33s %08lx %08lx %08lx",
503 hname,
504 nomakedefs.version_number,
505 (nomakedefs.version_features & ~nomakedefs.ignored_features),
506 nomakedefs.version_sanity1);
507 raw_print(buf);
508 release_runtime_info();
509 return;
510}
511void
512store_version(NHFILE *nhfp)
513{

Callers 1

argcheckFunction · 0.85

Calls 4

eosFunction · 0.85
runtime_info_initFunction · 0.85
raw_printFunction · 0.85
release_runtime_infoFunction · 0.85

Tested by

no test coverage detected