summaryrefslogtreecommitdiffstats
path: root/dstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'dstring.h')
-rw-r--r--dstring.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/dstring.h b/dstring.h
index 19fd6d7..b556313 100644
--- a/dstring.h
+++ b/dstring.h
@@ -22,6 +22,7 @@
#define BFS_DSTRING_H
#include "util.h"
+#include <stdarg.h>
#include <stddef.h>
/**
@@ -130,6 +131,18 @@ BFS_FORMATTER(1, 2)
char *dstrprintf(const char *format, ...);
/**
+ * Create a dynamic string from a format string and a va_list.
+ *
+ * @param format
+ * The format string to fill in.
+ * @param args
+ * The arguments for the format string.
+ * @return
+ * The created string, or NULL on failure.
+ */
+char *dstrvprintf(const char *format, va_list args);
+
+/**
* Free a dynamic string.
*
* @param dstr