| 14422 | |
| 14423 | |
| 14424 | static void addintlen (char *form) { |
| 14425 | size_t l = strlen(form); |
| 14426 | char spec = form[l - 1]; |
| 14427 | strcpy(form + l - 1, LUA_INTFRMLEN); |
| 14428 | form[l + sizeof(LUA_INTFRMLEN) - 2] = spec; |
| 14429 | form[l + sizeof(LUA_INTFRMLEN) - 1] = '\0'; |
| 14430 | } |
| 14431 | |
| 14432 | |
| 14433 | static int str_format (lua_State *L) { |