MCPcopy Create free account
hub / github.com/DFHack/dfhack / str_len

Function str_len

depends/lua/src/lstrlib.c:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54static int str_len (lua_State *L) {
55 size_t l;
56 luaL_checklstring(L, 1, &l);
57 lua_pushinteger(L, (lua_Integer)l);
58 return 1;
59}
60
61
62/* translate a relative string position: negative means back from end */

Callers

nothing calls this directly

Calls 2

luaL_checklstringFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected