MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / str_char

Function str_char

Source/Misc/lua/src/lua.c:13802–13814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13800
13801
13802static int str_char (lua_State *L) {
13803int n = lua_gettop(L); /* number of arguments */
13804int i;
13805luaL_Buffer b;
13806luaL_buffinit(L, &b);
13807for (i=1; i<=n; i++) {
13808int c = luaL_checkint(L, i);
13809luaL_argcheck(L, uchar(c) == c, i, "invalid value");
13810luaL_addchar(&b, uchar(c));
13811}
13812luaL_pushresult(&b);
13813return 1;
13814}
13815
13816
13817static int writer (lua_State *L, const void* b, size_t size, void* B) {

Callers

nothing calls this directly

Calls 3

lua_gettopFunction · 0.85
luaL_buffinitFunction · 0.85
luaL_pushresultFunction · 0.85

Tested by

no test coverage detected