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

Function addlenmod

third-party/lua-5.5.0/src/lstrlib.c:1267–1274  ·  view source on GitHub ↗

** add length modifier into formats */

Source from the content-addressed store, hash-verified

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

Callers 1

str_formatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected