summaryrefslogtreecommitdiffstats
path: root/common/textfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/textfile.c')
-rw-r--r--common/textfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/textfile.c b/common/textfile.c
index cdb42d13..076ec35b 100644
--- a/common/textfile.c
+++ b/common/textfile.c
@@ -88,6 +88,11 @@ int create_file(const char *filename, const mode_t mode)
return 0;
}
+int create_name(char *buf, size_t size, char *address, char *name)
+{
+ return snprintf(buf, size, "%s/%s/%s", STORAGEDIR, address, name);
+}
+
static inline char *find_key(char *map, const char *key, size_t len)
{
char *off = strstr(map, key);