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

Function param_array

common/json_param.c:404–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404struct command_result *param_array(struct command *cmd, const char *name,
405 const char *buffer, const jsmntok_t *tok,
406 const jsmntok_t **arr)
407{
408 if (tok->type == JSMN_ARRAY) {
409 *arr = tok;
410 return NULL;
411 }
412
413 return command_fail_badparam(cmd, name, buffer, tok, "should be an array");
414}
415
416struct command_result *param_bool(struct command *cmd, const char *name,
417 const char *buffer, const jsmntok_t *tok,

Callers 1

param_input_numbersFunction · 0.85

Calls 1

command_fail_badparamFunction · 0.70

Tested by

no test coverage detected