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

Function first_name

lightningd/configs.c:229–233  ·  view source on GitHub ↗

FIXME: This is a hack! Expose somehow in ccan/opt.*/ Returns string after first '-'. */

Source from the content-addressed store, hash-verified

227/* FIXME: This is a hack! Expose somehow in ccan/opt.*/
228/* Returns string after first '-'. */
229static const char *first_name(const char *names, unsigned *len)
230{
231 *len = strcspn(names + 1, "|= ");
232 return names + 1;
233}
234
235static const char *next_name(const char *names, unsigned *len)
236{

Callers 2

next_nameFunction · 0.70
opt_names_arrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected