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

Function json_tok_copy

common/json_parse_simple.c:525–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525jsmntok_t *json_tok_copy(const tal_t *ctx, const jsmntok_t *tok)
526{
527 return tal_dup_arr(ctx, jsmntok_t, tok, json_next(tok) - tok, 0);
528}
529
530void json_tok_remove(jsmntok_t **tokens,
531 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

Calls 1

json_nextFunction · 0.70

Tested by 1

json_parseFunction · 0.68