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

Function finished_arg

common/configdir.c:221–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221static void finished_arg(int *argc, char **argv, size_t *idx,
222 bool remove_args)
223{
224 if (!remove_args) {
225 (*idx)++;
226 return;
227 }
228 memmove(argv + *idx, argv + 1 + *idx, (*argc - *idx) * sizeof(char *));
229 (*argc)--;
230}
231
232/* Now all options are known, we can turn cmdline into configvars */
233static 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