copy strings in stack from top - n up to top - 1 to buffer */
| 626 | |
| 627 | /* copy strings in stack from top - n up to top - 1 to buffer */ |
| 628 | static void copy2buff (StkId top, int n, char *buff) { |
| 629 | size_t tl = 0; /* size already copied */ |
| 630 | do { |
| 631 | TString *st = tsvalue(s2v(top - n)); |
| 632 | size_t l = tsslen(st); /* length of string being copied */ |
| 633 | memcpy(buff + tl, getstr(st), l * sizeof(char)); |
| 634 | tl += l; |
| 635 | } while (--n > 0); |
| 636 | } |
| 637 | |
| 638 | |
| 639 | /* |