| 581 | |
| 582 | |
| 583 | LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { |
| 584 | if (l > 0) { /* avoid 'memcpy' when 's' can be NULL */ |
| 585 | char *b = prepbuffsize(B, l, -1); |
| 586 | memcpy(b, s, l * sizeof(char)); |
| 587 | luaL_addsize(B, l); |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | |
| 592 | LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) { |
no test coverage detected