MCPcopy Index your code
hub / github.com/NetHack/NetHack / check_misc_menu_command

Function check_misc_menu_command

src/options.c:693–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693staticfn int
694check_misc_menu_command(char *opts, char *op UNUSED)
695{
696 int i;
697 const char *name_to_check;
698
699 /* check for menu command mapping */
700 for (i = 0; default_menu_cmd_info[i].name; i++) {
701 name_to_check = default_menu_cmd_info[i].name;
702 if (match_optname(opts, name_to_check,
703 (int) strlen(name_to_check), TRUE))
704 return i;
705 }
706 return -1;
707}
708
709static int roleopt2opt[4] = {
710 opt_role, opt_race, opt_gender, opt_alignment

Callers 2

parseoptionsFunction · 0.85
shared_menu_optfnFunction · 0.85

Calls 1

match_optnameFunction · 0.70

Tested by

no test coverage detected