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

Function param_invstring

common/json_param.c:497–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497struct command_result *param_invstring(struct command *cmd, const char *name,
498 const char * buffer, const jsmntok_t *tok,
499 const char **str)
500{
501 const char *strtmp = json_strdup(cmd, buffer, tok);
502 *str = to_canonical_invstr(cmd, strtmp);
503 return NULL;
504}
505
506struct command_result *param_ignore(struct command *cmd, const char *name,
507 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

to_canonical_invstrFunction · 0.70
json_strdupFunction · 0.50

Tested by

no test coverage detected