MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / str_len

Function str_len

third-party/lua-5.2.4/src/lstrlib.c:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37static int str_len (lua_State *L) {
38 size_t l;
39 luaL_checklstring(L, 1, &l);
40 lua_pushinteger(L, (lua_Integer)l);
41 return 1;
42}
43
44
45/* translate a relative string position: negative means back from end */

Callers

nothing calls this directly

Calls 2

luaL_checklstringFunction · 0.70
lua_pushintegerFunction · 0.70

Tested by

no test coverage detected