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