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

Function get_menu

win/curses/cursdial.c:901–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899/* return a pointer to the menu associated with the given NetHack winid */
900
901static nhmenu *
902get_menu(winid wid)
903{
904 nhmenu *menuptr = nhmenus;
905
906 while (menuptr != NULL) {
907 if (menuptr->wid == wid) {
908 return menuptr;
909 }
910 menuptr = menuptr->next_menu;
911 }
912
913 return NULL; /* Not found */
914}
915
916static char
917menu_get_accel(boolean first)

Callers 7

curses_create_nhmenuFunction · 0.85
curses_add_nhmenu_itemFunction · 0.85
curses_finalize_nhmenuFunction · 0.85
curses_display_nhmenuFunction · 0.85
curses_menu_existsFunction · 0.85
curses_del_menuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected