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

Function bail

win/tty/wintty.c:343–350  ·  view source on GitHub ↗

clean up and quit */

Source from the content-addressed store, hash-verified

341
342/* clean up and quit */
343static void
344bail(const char *mesg)
345{
346 clearlocks();
347 tty_exit_nhwindows(mesg);
348 nh_terminate(EXIT_SUCCESS);
349 /*NOTREACHED*/
350}
351
352#ifdef RESIZABLE
353static void winch_handler(int);

Callers 2

tty_player_selectionFunction · 0.70
tty_asknameFunction · 0.70

Calls 3

clearlocksFunction · 0.85
tty_exit_nhwindowsFunction · 0.85
nh_terminateFunction · 0.50

Tested by

no test coverage detected