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

Function first_lopt

ccan/ccan/opt/opt.c:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58const char *first_lopt(unsigned *i, unsigned *len)
59{
60 const char *p;
61 for (p = first_opt(i, len); p; p = next_opt(p, i, len)) {
62 if (p[0] == '-') {
63 /* Skip leading "-" */
64 (*len)--;
65 p++;
66 break;
67 }
68 }
69 return p;
70}
71
72const char *next_lopt(const char *p, unsigned *i, unsigned *len)
73{

Callers 2

parse_oneFunction · 0.85
mainFunction · 0.85

Calls 2

first_optFunction · 0.85
next_optFunction · 0.85

Tested by 1

mainFunction · 0.68