diff options
author | Werner Almesberger <werner@almesberger.net> | 2016-09-11 18:00:58 -0300 |
---|---|---|
committer | Werner Almesberger <werner@almesberger.net> | 2016-09-11 18:00:58 -0300 |
commit | 275f91f0728393365de8cb37881656d137844688 (patch) | |
tree | bdc14b0ce0c27d4ab73db2badcacd711cc6b7ee3 /misc/util.h | |
parent | c71736dd1f5c897840c2083777cdc326f97581c7 (diff) | |
download | eeshow-275f91f0728393365de8cb37881656d137844688.tar.gz eeshow-275f91f0728393365de8cb37881656d137844688.tar.bz2 eeshow-275f91f0728393365de8cb37881656d137844688.zip |
misc/util.c: add alloc_vprintf
Diffstat (limited to 'misc/util.h')
-rw-r--r-- | misc/util.h | 3 |
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))); |