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

Function nethack_exit

sys/amiga/amidos.c:493–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491 */
492#undef exit
493void
494nethack_exit(int code)
495{
496#ifdef CHDIR
497 extern char orgdir[];
498#endif
499
500#ifdef CHDIR
501 chdir(orgdir); /* chdir, not chdirx */
502#endif
503
504#ifdef AMII_GRAPHICS
505 if (windowprocs.win_init_nhwindows == amii_procs.win_init_nhwindows)
506 CleanUp();
507#endif
508 exit(code);
509}
510
511void
512regularize(char *s) /* normalize file name - we don't like :'s or /'s */

Callers

nothing calls this directly

Calls 2

CleanUpFunction · 0.85
chdirFunction · 0.70

Tested by

no test coverage detected