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

Function first_sopt

ccan/ccan/opt/opt.c:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85const char *first_sopt(unsigned *i)
86{
87 const char *p;
88 unsigned int len = 0 /* GCC bogus warning */;
89
90 for (p = first_opt(i, &len); p; p = next_opt(p, i, &len)) {
91 if (p[0] != '-')
92 break;
93 }
94 return p;
95}
96
97const char *next_sopt(const char *p, unsigned *i)
98{

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