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

Function json_tok_copy

common/json_parse_simple.c:568–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566}
567
568jsmntok_t *json_tok_copy(const tal_t *ctx, const jsmntok_t *tok)
569{
570 return tal_dup_arr(ctx, jsmntok_t, tok, json_next(tok) - tok, 0);
571}
572
573void json_tok_remove(jsmntok_t **tokens,
574 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