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

Function error

sys/share/unixtty.c:472–486  ·  view source on GitHub ↗

the Be GUI will define its own error proc */ fatal error */

Source from the content-addressed store, hash-verified

470#ifndef __begui__ /* the Be GUI will define its own error proc */
471/* fatal error */
472void
473error(const char *s, ...)
474{
475 va_list the_args;
476
477 va_start(the_args, s);
478 if (iflags.window_inited)
479 exit_nhwindows((char *) 0); /* for tty, will call settty() */
480 if (settty_needed)
481 settty((char *) 0);
482 Vprintf(s, the_args);
483 (void) putchar('\n');
484 va_end(the_args);
485 exit(EXIT_FAILURE);
486}
487#endif /* !__begui__ */
488
489RESTORE_WARNING_FORMAT_NONLITERAL

Callers 15

getlockFunction · 0.70
pcunix.cFile · 0.70
pcmainFunction · 0.70
chdirxFunction · 0.70
chdirxFunction · 0.50
getlockFunction · 0.50
libnhmain.cFile · 0.50
chdirxFunction · 0.50
MAINFunction · 0.50
early_optionsFunction · 0.50
copy_fileFunction · 0.50
update_fileFunction · 0.50

Calls 1

setttyFunction · 0.70

Tested by

no test coverage detected