| 595 | |
| 596 | |
| 597 | LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { |
| 598 | if (l > 0) { /* avoid 'memcpy' when 's' can be NULL */ |
| 599 | char *b = prepbuffsize(B, l, -1); |
| 600 | memcpy(b, s, l * sizeof(char)); |
| 601 | luaL_addsize(B, l); |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | |
| 606 | LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) { |
no test coverage detected