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

Function consume_option

ccan/ccan/opt/parse.c:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24static void consume_option(int *argc, char *argv[], unsigned optnum)
25{
26 memmove(&argv[optnum], &argv[optnum+1],
27 sizeof(argv[optnum]) * (*argc-optnum));
28 (*argc)--;
29}
30
31/* Returns 1 if argument consumed, 0 if all done, -1 on error. */
32int parse_one(int *argc, char *argv[], enum opt_type is_early, unsigned *offset,

Callers 1

parse_oneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected