| 526 | |
| 527 | |
| 528 | LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { |
| 529 | if (l > 0) { /* avoid 'memcpy' when 's' can be NULL */ |
| 530 | char *b = luaL_prepbuffsize(B, l); |
| 531 | memcpy(b, s, l * sizeof(char)); |
| 532 | luaL_addsize(B, l); |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | |
| 537 | LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) { |
no test coverage detected