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

Function addlenmod

third-party/lua-5.2.4/src/lstrlib.c:882–889  ·  view source on GitHub ↗

** add length modifier into formats */

Source from the content-addressed store, hash-verified

880** add length modifier into formats
881*/
882static void addlenmod (char *form, const char *lenmod) {
883 size_t l = strlen(form);
884 size_t lm = strlen(lenmod);
885 char spec = form[l - 1];
886 strcpy(form + l - 1, lenmod);
887 form[l + lm - 1] = spec;
888 form[l + lm] = '\0';
889}
890
891
892static int str_format (lua_State *L) {

Callers 1

str_formatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected