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

Function finished_arg

common/configdir.c:228–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static void finished_arg(int *argc, char **argv, size_t *idx,
229 bool remove_args)
230{
231 if (!remove_args) {
232 (*idx)++;
233 return;
234 }
235 memmove(argv + *idx, argv + 1 + *idx, (*argc - *idx) * sizeof(char *));
236 (*argc)--;
237}
238
239/* Now all options are known, we can turn cmdline into configvars */
240static struct configvar **gather_cmdline_args(const tal_t *ctx,

Callers 1

gather_cmdline_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected