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

Function add_arg

plugins/bcli.c:99–104  ·  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

97
98/* Add the n'th arg to *args, incrementing n and keeping args of size n+1 */
99static void add_arg(const char ***args, const char *arg TAKES)
100{
101 if (taken(arg))
102 tal_steal(*args, arg);
103 tal_arr_expand(args, arg);
104}
105
106static const char **gather_argsv(const tal_t *ctx, const char *cmd, va_list ap)
107{

Callers 1

gather_argsvFunction · 0.85

Calls 1

takenFunction · 0.85

Tested by

no test coverage detected