| 745 | |
| 746 | |
| 747 | static void addintlen (char *form) { |
| 748 | size_t l = strlen(form); |
| 749 | char spec = form[l - 1]; |
| 750 | strcpy(form + l - 1, LUA_INTFRMLEN); |
| 751 | form[l + sizeof(LUA_INTFRMLEN) - 2] = spec; |
| 752 | form[l + sizeof(LUA_INTFRMLEN) - 1] = '\0'; |
| 753 | } |
| 754 | |
| 755 | |
| 756 | static int str_format (lua_State *L) { |