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

Function json_strdup

common/json_parse_simple.c:63–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63char *json_strdup(const tal_t *ctx, const char *buffer, const jsmntok_t *tok)
64{
65 return tal_strndup(ctx, buffer + tok->start, tok->end - tok->start);
66}
67
68
69bool json_to_u64(const char *buffer, const jsmntok_t *tok, u64 *num)

Callers 9

json_get_idFunction · 0.70
param_outpoint_arrFunction · 0.70
param_extra_tlvsFunction · 0.70
param_routehintFunction · 0.70
param_routehint_arrayFunction · 0.70
human_helpFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 2

mainFunction · 0.40
mainFunction · 0.40