MCPcopy Create free account
hub / github.com/F-Stack/f-stack / str_len

Function str_len

freebsd/contrib/openzfs/module/lua/lstrlib.c:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47static int str_len (lua_State *L) {
48 size_t l;
49 luaL_checklstring(L, 1, &l);
50 lua_pushinteger(L, (lua_Integer)l);
51 return 1;
52}
53
54
55/* 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