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

Function curses_teardown_messages

win/curses/cursmesg.c:478–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476/* Delete message history at game end. */
477
478void
479curses_teardown_messages(void)
480{
481 nhprev_mesg *current_mesg;
482
483 while ((current_mesg = first_mesg) != 0) {
484 first_mesg = current_mesg->next_mesg;
485 free(current_mesg->str);
486 free(current_mesg);
487 }
488 last_mesg = (nhprev_mesg *) 0;
489 num_messages = 0;
490}
491
492/* Display previous messages in a popup (via menu so can scroll backwards) */
493

Callers 1

curses_destroy_nhwindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected