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

Function json_get_membern

common/json_parse_simple.c:244–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244const jsmntok_t *json_get_membern(const char *buffer,
245 const jsmntok_t tok[],
246 const char *label, size_t len)
247{
248 const jsmntok_t *t;
249 size_t i;
250
251 if (tok->type != JSMN_OBJECT)
252 return NULL;
253
254 json_for_each_obj(i, t, tok)
255 if (json_tok_strneq(buffer, t, label, len))
256 return t + 1;
257
258 return NULL;
259}
260
261const jsmntok_t *json_get_arr(const jsmntok_t tok[], size_t index)
262{

Callers

nothing calls this directly

Calls 1

json_tok_strneqFunction · 0.70

Tested by

no test coverage detected