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

Function nhl_s_suffix

src/nhlua.c:882–893  ·  view source on GitHub ↗

s_suffix("foo") */

Source from the content-addressed store, hash-verified

880
881/* s_suffix("foo") */
882staticfn int
883nhl_s_suffix(lua_State *L)
884{
885 int argc = lua_gettop(L);
886
887 if (argc == 1)
888 lua_pushstring(L, s_suffix(luaL_checkstring(L, 1)));
889 else
890 nhl_error(L, "Wrong args");
891
892 return 1;
893}
894
895/* ing_suffix("foo") */
896staticfn int

Callers

nothing calls this directly

Calls 2

s_suffixFunction · 0.85
nhl_errorFunction · 0.85

Tested by

no test coverage detected