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

Function ext_func_tab_from_func

src/cmd.c:3015–3025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3013}
3014
3015const struct ext_func_tab *
3016ext_func_tab_from_func(int (*fn)(void))
3017{
3018 const struct ext_func_tab *extcmd;
3019
3020 for (extcmd = extcmdlist; extcmd->ef_txt; ++extcmd)
3021 if (extcmd->ef_funct == fn)
3022 return extcmd;
3023
3024 return NULL;
3025}
3026
3027/* returns the key bound to a movement command for given DIR_ and MV_ mode */
3028char

Callers 3

test_moveFunction · 0.85
cmdq_add_ecFunction · 0.85
reset_commandsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_moveFunction · 0.68