MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / copy2buff

Function copy2buff

extlibs/lua/src/lvm.c:622–629  ·  view source on GitHub ↗

copy strings in stack from top - n up to top - 1 to buffer */

Source from the content-addressed store, hash-verified

620
621/* copy strings in stack from top - n up to top - 1 to buffer */
622static void copy2buff (StkId top, int n, char *buff) {
623 size_t tl = 0; /* size already copied */
624 do {
625 size_t l = vslen(s2v(top - n)); /* length of string being copied */
626 memcpy(buff + tl, svalue(s2v(top - n)), l * sizeof(char));
627 tl += l;
628 } while (--n > 0);
629}
630
631
632/*

Callers 1

luaV_concatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected