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

Function json_tok_full

common/json_parse_simple.c:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

json_get_idFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected