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

Function addlenmod

third-party/lua-5.4.6/src/lstrlib.c:1263–1270  ·  view source on GitHub ↗

** add length modifier into formats */

Source from the content-addressed store, hash-verified

1261** add length modifier into formats
1262*/
1263static void addlenmod (char *form, const char *lenmod) {
1264 size_t l = strlen(form);
1265 size_t lm = strlen(lenmod);
1266 char spec = form[l - 1];
1267 strcpy(form + l - 1, lenmod);
1268 form[l + lm - 1] = spec;
1269 form[l + lm] = '\0';
1270}
1271
1272
1273static int str_format (lua_State *L) {

Callers 1

str_formatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected