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

Function toks_alloc

common/json_parse_simple.c:443–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443jsmntok_t *toks_alloc(const tal_t *ctx)
444{
445 jsmntok_t *toks = tal_arr(ctx, jsmntok_t, 10);
446 toks_reset(toks);
447 return toks;
448}
449
450bool json_parse_input(jsmn_parser *parser,
451 jsmntok_t **toks,

Callers 6

json_parse_simpleFunction · 0.70
plugin_send_getmanifestFunction · 0.50
jcon_connectedFunction · 0.50
test_json_filterFunction · 0.50
test_json_streamFunction · 0.50
test_json_tok_sizeFunction · 0.50

Calls 1

toks_resetFunction · 0.70

Tested by 3

test_json_filterFunction · 0.40
test_json_streamFunction · 0.40
test_json_tok_sizeFunction · 0.40