From 9dc404958e9c91f33f75450f69b690a5e676af04 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Tue, 24 May 2016 20:50:35 +0300 Subject: util: Add xasprintf portable asprintf variant Include a portable asprintf variant that works on any C99 conforming platform. Signed-off-by: Pantelis Antoniou Signed-off-by: David Gibson --- util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'util.h') diff --git a/util.h b/util.h index f800b60..f5c4f1b 100644 --- a/util.h +++ b/util.h @@ -59,6 +59,7 @@ static inline void *xrealloc(void *p, size_t len) } extern char *xstrdup(const char *s); +extern int xasprintf(char **strp, const char *fmt, ...); extern char *join_path(const char *path, const char *name); /** -- cgit v1.1