Add the n'th arg to *args, incrementing n and keeping args of size n+1 */
| 63 | |
| 64 | /* Add the n'th arg to *args, incrementing n and keeping args of size n+1 */ |
| 65 | static 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 */ |
| 73 | static const char **gather_argsv(const tal_t *ctx, const char ***stdinargs, const char *cmd, va_list ap) |