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

Function param_u64

common/json_param.c:576–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576struct command_result *param_u64(struct command *cmd, const char *name,
577 const char *buffer, const jsmntok_t *tok,
578 uint64_t **num)
579{
580 *num = tal(cmd, uint64_t);
581 if (json_to_u64(buffer, tok, *num))
582 return NULL;
583
584 return command_fail_badparam(cmd, name, buffer, tok,
585 "should be an unsigned 64 bit integer");
586}
587
588struct command_result *param_s64(struct command *cmd, const char *name,
589 const char *buffer, const jsmntok_t *tok,

Callers 2

param_u64_nonzeroFunction · 0.85
param_u64_nonzeroFunction · 0.85

Calls 2

command_fail_badparamFunction · 0.70
json_to_u64Function · 0.50

Tested by

no test coverage detected