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

Function first_name

ccan/ccan/opt/opt.c:20–24  ·  view source on GitHub ↗

Returns string after first '-'. */

Source from the content-addressed store, hash-verified

18
19/* Returns string after first '-'. */
20static const char *first_name(const char *names, unsigned *len)
21{
22 *len = strcspn(names + 1, "|= ");
23 return names + 1;
24}
25
26static const char *next_name(const char *names, unsigned *len)
27{

Callers 4

next_nameFunction · 0.70
first_optFunction · 0.70
next_optFunction · 0.70
check_optFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected