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

Function add_arg

plugins/bcli.c:65–70  ·  view source on GitHub ↗

Add the n'th arg to *args, incrementing n and keeping args of size n+1 */

Source from the content-addressed store, hash-verified

63
64/* Add the n'th arg to *args, incrementing n and keeping args of size n+1 */
65static void add_arg(const char ***args, const char *arg TAKES)
66{
67 if (taken(arg))
68 tal_steal(*args, arg);
69 tal_arr_expand(args, arg);
70}
71
72/* If stdinargs is non-NULL, that is where we put additional args */
73static const char **gather_argsv(const tal_t *ctx, const char ***stdinargs, const char *cmd, va_list ap)

Callers 1

gather_argsvFunction · 0.85

Calls 1

takenFunction · 0.85

Tested by

no test coverage detected