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

Function json_tok_full_len

common/json_parse_simple.c:19–24  ·  view source on GitHub ↗

Include " if it's a string. */

Source from the content-addressed store, hash-verified

17
18/* Include " if it's a string. */
19int json_tok_full_len(const jsmntok_t *t)
20{
21 if (t->type == JSMN_STRING)
22 return t->end - t->start + 2;
23 return t->end - t->start;
24}
25
26bool json_tok_strneq(const char *buffer, const jsmntok_t *tok,
27 const char *str, size_t len)

Callers 1

json_get_idFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected