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

Function param_u32

common/json_param.c:564–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564struct command_result *param_u32(struct command *cmd, const char *name,
565 const char *buffer, const jsmntok_t *tok,
566 uint32_t **num)
567{
568 *num = tal(cmd, uint32_t);
569 if (json_to_u32(buffer, tok, *num))
570 return NULL;
571
572 return command_fail_badparam(cmd, name, buffer, tok,
573 "should be an unsigned 32 bit integer");
574}
575
576struct command_result *param_u64(struct command *cmd, const char *name,
577 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.70
json_to_u32Function · 0.50

Tested by

no test coverage detected