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

Function first_name

lightningd/configs.c:228–232  ·  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

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

Callers 2

next_nameFunction · 0.70
opt_names_arrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected