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

Function param_array

common/json_param.c:379–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379struct command_result *param_array(struct command *cmd, const char *name,
380 const char *buffer, const jsmntok_t *tok,
381 const jsmntok_t **arr)
382{
383 if (tok->type == JSMN_ARRAY) {
384 *arr = tok;
385 return NULL;
386 }
387
388 return command_fail_badparam(cmd, name, buffer, tok, "should be an array");
389}
390
391struct command_result *param_bool(struct command *cmd, const char *name,
392 const char *buffer, const jsmntok_t *tok,

Callers 1

param_input_numbersFunction · 0.50

Calls 1

command_fail_badparamFunction · 0.85

Tested by

no test coverage detected