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

Function json_get_membern

common/json_parse_simple.c:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150const jsmntok_t *json_get_membern(const char *buffer,
151 const jsmntok_t tok[],
152 const char *label, size_t len)
153{
154 const jsmntok_t *t;
155 size_t i;
156
157 if (tok->type != JSMN_OBJECT)
158 return NULL;
159
160 json_for_each_obj(i, t, tok)
161 if (json_tok_strneq(buffer, t, label, len))
162 return t + 1;
163
164 return NULL;
165}
166
167const jsmntok_t *json_get_member(const char *buffer, const jsmntok_t tok[],
168 const char *label)

Callers 2

json_get_memberFunction · 0.85
parse_fieldFunction · 0.85

Calls 1

json_tok_strneqFunction · 0.85

Tested by

no test coverage detected