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

Function first_opt

ccan/ccan/opt/opt.c:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static const char *first_opt(unsigned *i, unsigned *len)
35{
36 for (*i = 0; *i < opt_count; (*i)++) {
37 if (opt_table[*i].type == OPT_SUBTABLE)
38 continue;
39 return first_name(opt_table[*i].names, len);
40 }
41 return NULL;
42}
43
44static const char *next_opt(const char *p, unsigned *i, unsigned *len)
45{

Callers 2

first_loptFunction · 0.85
first_soptFunction · 0.85

Calls 1

first_nameFunction · 0.70

Tested by

no test coverage detected