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

Function add_input

cli/lightning-cli.c:280–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280static void add_input(char **cmd, const char *input,
281 int i, int argc)
282{
283 /* Numbers, bools, objects and arrays are left unquoted,
284 * and quoted things left alone. */
285 if (is_literal(input))
286 tal_append_fmt(cmd, "%s", input);
287 else
288 tal_append_fmt(cmd, "\"%s\"", json_escape(*cmd, input)->s);
289 if (i != argc - 1)
290 tal_append_fmt(cmd, ", ");
291}
292
293static void
294try_exec_man (const char *page, char *relative_to) {

Callers 1

mainFunction · 0.85

Calls 3

is_literalFunction · 0.85
tal_append_fmtFunction · 0.85
json_escapeClass · 0.50

Tested by

no test coverage detected