| 676 | } |
| 677 | |
| 678 | void json_dup_contents(const tal_t *ctx, |
| 679 | const char *buffer, |
| 680 | const jsmntok_t *tok, |
| 681 | const char **new_buffer, |
| 682 | const jsmntok_t **new_toks) |
| 683 | { |
| 684 | *new_buffer = tal_dup_arr(ctx, char, buffer, tok->end, 0); |
| 685 | *new_toks = tal_dup_arr(ctx, jsmntok_t, tok, json_next(tok) - tok, 0); |
| 686 | } |
no test coverage detected