summaryrefslogtreecommitdiff
path: root/misc/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/util.h')
-rw-r--r--misc/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/util.h b/misc/util.h
index b71a8ea..5c195f1 100644
--- a/misc/util.h
+++ b/misc/util.h
@@ -70,4 +70,8 @@ static inline bool strbegins(const char *s, const char *prefix)
return !strncmp(s, prefix, strlen(prefix));
}
+
+int alloc_printf(char **s, const char *fmt, ...)
+ __attribute__((format(printf, 2, 3)));
+
#endif /* !MISC_UTIL_H */