| 566 | |
| 567 | |
| 568 | LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { |
| 569 | if (l > 0) { /* avoid 'memcpy' when 's' can be NULL */ |
| 570 | char *b = prepbuffsize(B, l, -1); |
| 571 | memcpy(b, s, l * sizeof(char)); |
| 572 | luaL_addsize(B, l); |
| 573 | } |
| 574 | } |
| 575 | |
| 576 | |
| 577 | LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) { |
no test coverage detected