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

Function next_opt

ccan/ccan/opt/opt.c:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static const char *next_opt(const char *p, unsigned *i, unsigned *len)
45{
46 for (; *i < opt_count; (*i)++) {
47 if (opt_table[*i].type == OPT_SUBTABLE)
48 continue;
49 if (!p)
50 return first_name(opt_table[*i].names, len);
51 p = next_name(p, len);
52 if (p)
53 return p;
54 }
55 return NULL;
56}
57
58const char *first_lopt(unsigned *i, unsigned *len)
59{

Callers 4

first_loptFunction · 0.85
next_loptFunction · 0.85
first_soptFunction · 0.85
next_soptFunction · 0.85

Calls 2

first_nameFunction · 0.70
next_nameFunction · 0.70

Tested by

no test coverage detected