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

Function json_tok_full

common/json_parse_simple.c:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <wire/onion_wire.h>
12
13const char *json_tok_full(const char *buffer, const jsmntok_t *t)
14{
15 if (t->type == JSMN_STRING)
16 return buffer + t->start - 1;
17 return buffer + t->start;
18}
19
20/* Include " if it's a string. */
21int json_tok_full_len(const jsmntok_t *t)

Callers 11

handle_percentFunction · 0.70
parse_fieldvalFunction · 0.70
parse_objFunction · 0.70
parse_arrelemFunction · 0.70
parse_arrFunction · 0.70
command_fail_badparamFunction · 0.70
param_outpoint_arrFunction · 0.70
param_lease_hexFunction · 0.70
json_add_tokFunction · 0.70
print_jsonFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected