summaryrefslogtreecommitdiff
path: root/misc/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/util.h')
-rw-r--r--misc/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/util.h b/misc/util.h
index 5c195f1..ebc0762 100644
--- a/misc/util.h
+++ b/misc/util.h
@@ -14,6 +14,7 @@
#ifndef MISC_UTIL_H
#define MISC_UTIL_H
+#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
@@ -71,6 +72,8 @@ static inline bool strbegins(const char *s, const char *prefix)
}
+int alloc_vprintf(char **s, const char *fmt, va_list ap)
+ __attribute__((format(printf, 2, 0)));
int alloc_printf(char **s, const char *fmt, ...)
__attribute__((format(printf, 2, 3)));