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

Function next_lopt

ccan/ccan/opt/opt.c:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72const char *next_lopt(const char *p, unsigned *i, unsigned *len)
73{
74 for (p = next_opt(p, i, len); p; p = next_opt(p, i, len)) {
75 if (p[0] == '-') {
76 /* Skip leading "-" */
77 (*len)--;
78 p++;
79 break;
80 }
81 }
82 return p;
83}
84
85const char *first_sopt(unsigned *i)
86{

Callers 2

parse_oneFunction · 0.85
mainFunction · 0.85

Calls 1

next_optFunction · 0.85

Tested by 1

mainFunction · 0.68