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

Function join_strings

lightningd/runes.c:344–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344static void join_strings(char **base, const char *connector, char *append)
345{
346 if (streq(*base, "")) {
347 *base = append;
348 } else {
349 tal_append_fmt(base, " %s %s", connector, append);
350 }
351}
352
353static struct command_result *json_add_rune(struct lightningd *ld,
354 struct json_stream *js,

Callers 1

json_add_runeFunction · 0.85

Calls 1

tal_append_fmtFunction · 0.85

Tested by

no test coverage detected