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

Function json_to_apilist

plugins/libplugin.c:1499–1509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1497}
1498
1499static const char **json_to_apilist(const tal_t *ctx, const char *buffer, const jsmntok_t *tok)
1500{
1501 size_t i;
1502 const jsmntok_t *t;
1503 const char **ret = tal_arr(ctx, const char *, tok->size);
1504
1505 json_for_each_arr(i, t, tok)
1506 ret[i] = json_strdup(ret, buffer, t);
1507
1508 return ret;
1509}
1510
1511static struct command_result *get_beglist(struct command *aux_cmd,
1512 const char *method,

Callers

nothing calls this directly

Calls 1

json_strdupFunction · 0.50

Tested by

no test coverage detected