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

Function charp_jsonfmt

plugins/libplugin.c:1733–1739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1731}
1732
1733bool charp_jsonfmt(struct command *cmd, struct json_stream *js, const char *fieldname, char **p)
1734{
1735 if (!*p)
1736 return false;
1737 json_add_string(js, fieldname, *p);
1738 return true;
1739}
1740
1741bool string_array_jsonfmt(struct command *cmd, struct json_stream *js,
1742 const char *fieldname, const char ***arr)

Callers

nothing calls this directly

Calls 1

json_add_stringFunction · 0.50

Tested by

no test coverage detected