mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-17 13:06:36 +02:00
18 lines
388 B
C
18 lines
388 B
C
#include "config.h"
|
|
#include <ccan/tal/str/str.h>
|
|
#include <common/mkdatastorekey.h>
|
|
#include <common/utils.h>
|
|
|
|
const char **mkdatastorekey_(const tal_t *ctx, ...)
|
|
{
|
|
va_list ap;
|
|
const char *s;
|
|
const char **key = tal_arr(ctx, const char *, 0);
|
|
|
|
va_start(ap, ctx);
|
|
while ((s = va_arg(ap, const char *)) != NULL)
|
|
tal_arr_expand(&key, tal_strdup(key, s));
|
|
va_end(ap);
|
|
|
|
return key;
|
|
}
|