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

Function ecname_from_fn

src/cmd.c:3091–3102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3089}
3090
3091const char *
3092ecname_from_fn(int (*fn)(void))
3093{
3094 const struct ext_func_tab *extcmd, *cmdptr = 0;
3095
3096 for (extcmd = extcmdlist; extcmd->ef_txt; ++extcmd)
3097 if (extcmd->ef_funct == fn) {
3098 cmdptr = extcmd;
3099 return cmdptr->ef_txt;
3100 }
3101 return (char *) 0;
3102}
3103
3104/* return extended command name (without leading '#') for command (*fn)() */
3105const char *

Callers 12

wiz_wishFunction · 0.85
wiz_identifyFunction · 0.85
wiz_makemapFunction · 0.85
wiz_mapFunction · 0.85
wiz_genesisFunction · 0.85
wiz_whereFunction · 0.85
wiz_detectFunction · 0.85
wiz_load_luaFunction · 0.85
wiz_load_spluaFunction · 0.85
wiz_level_teleFunction · 0.85
wiz_intrinsicFunction · 0.85
wiz_customFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected