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

Function opt_parse

ccan/ccan/opt/opt.c:220–232  ·  view source on GitHub ↗

Parse your arguments. */

Source from the content-addressed store, hash-verified

218
219/* Parse your arguments. */
220bool opt_parse(int *argc, char *argv[], void (*errlog)(const char *fmt, ...))
221{
222 int ret;
223 unsigned offset = 0;
224
225 /* This helps opt_usage. */
226 opt_argv0 = argv[0];
227
228 while ((ret = parse_one(argc, argv, 0, &offset, errlog, false)) == 1);
229
230 /* parse_one returns 0 on finish, -1 on error */
231 return (ret == 0);
232}
233
234static bool early_parse(int argc, char *argv[],
235 void (*errlog)(const char *fmt, ...),

Callers 15

mainFunction · 0.85
mainFunction · 0.85
parse_argsFunction · 0.85
mainFunction · 0.85
handle_optsFunction · 0.85
mainFunction · 0.85
parse_includeFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

parse_oneFunction · 0.85

Tested by 2

parse_argsFunction · 0.68
mainFunction · 0.68