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

Function join_strings

lightningd/runes.c:334–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static void join_strings(char **base, const char *connector, char *append)
335{
336 if (streq(*base, "")) {
337 *base = append;
338 } else {
339 tal_append_fmt(base, " %s %s", connector, append);
340 }
341}
342
343static struct command_result *json_add_rune(struct lightningd *ld,
344 struct json_stream *js,

Callers 1

json_add_runeFunction · 0.85

Calls 1

tal_append_fmtFunction · 0.85

Tested by

no test coverage detected