MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_tok_copy

Function json_tok_copy

common/json_parse_simple.c:618–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618jsmntok_t *json_tok_copy(const tal_t *ctx, const jsmntok_t *tok)
619{
620 return tal_dup_arr(ctx, jsmntok_t, tok, json_next(tok) - tok, 0);
621}
622
623void json_tok_remove(jsmntok_t **tokens,
624 jsmntok_t *obj_or_array, const jsmntok_t *tok, size_t num)

Callers 4

json_plugin_controlFunction · 0.85
json_checkFunction · 0.85
json_parseFunction · 0.85
ld_command_handleFunction · 0.85

Calls 1

json_nextFunction · 0.70

Tested by 1

json_parseFunction · 0.68