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

Function nethack_exit

sys/windows/windsys.c:512–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510#endif
511
512void
513nethack_exit(int code)
514{
515 /* Only if we started from the GUI, not the command prompt,
516 * we need to get one last return, so the score board does
517 * not vanish instantly after being created.
518 * GUILaunched is defined and set in consoletty.c.
519 */
520
521 if (getreturn_enabled) {
522 raw_print("\n");
523 if (iflags.window_inited)
524 wait_synch();
525 }
526 /* frees some status tracking data */
527 genl_status_finish();
528#ifdef MSWIN_GRAPHICS
529 free_winmain_stuff();
530#endif
531 exit(code);
532}
533
534void
535get_nhuuid(void)

Callers 3

MAINFunction · 0.70
early_optionsFunction · 0.70
getlockFunction · 0.70

Calls 4

raw_printFunction · 0.85
wait_synchFunction · 0.85
genl_status_finishFunction · 0.85
free_winmain_stuffFunction · 0.85

Tested by

no test coverage detected