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

Function opt_terminate

src/earlyarg.c:365–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 terminate the program without starting play, like 'nethack --version'
364 or 'nethack -s Zelda'; do some cleanup before that termination */
365ATTRNORETURN staticfn void
366opt_terminate(void)
367{
368 program_state.early_options = 0;
369 config_error_done(); /* free memory allocated by config_error_init() */
370
371 nh_terminate(EXIT_SUCCESS);
372 /*NOTREACHED*/
373}
374
375ATTRNORETURN staticfn void
376opt_usage(const char *hackdir)

Callers 3

early_optionsFunction · 0.70
opt_usageFunction · 0.70
after_opt_showpathsFunction · 0.70

Calls 2

config_error_doneFunction · 0.85
nh_terminateFunction · 0.70

Tested by

no test coverage detected