MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / str_len

Function str_len

src/Chain/libraries/glua/lstrlib.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53static int str_len(lua_State *L) {
54 size_t l;
55 luaL_checklstring(L, 1, &l);
56 lua_pushinteger(L, (lua_Integer)l);
57 return 1;
58}
59
60
61/* 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