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

Function next_sopt

ccan/ccan/opt/opt.c:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97const char *next_sopt(const char *p, unsigned *i)
98{
99 unsigned int len = 1;
100 for (p = next_opt(p, i, &len); p; p = next_opt(p, i, &len)) {
101 if (p[0] != '-')
102 break;
103 }
104 return p;
105}
106
107/* Avoids dependency on err.h or ccan/err */
108#ifndef failmsg

Callers 2

parse_oneFunction · 0.85
mainFunction · 0.85

Calls 1

next_optFunction · 0.85

Tested by 1

mainFunction · 0.68