summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_string_sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/archive_string_sprintf.c')
-rw-r--r--lib/libarchive/archive_string_sprintf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libarchive/archive_string_sprintf.c b/lib/libarchive/archive_string_sprintf.c
index 4401e9a..44b116e 100644
--- a/lib/libarchive/archive_string_sprintf.c
+++ b/lib/libarchive/archive_string_sprintf.c
@@ -44,6 +44,16 @@ __FBSDID("$FreeBSD$");
#include "archive_string.h"
#include "archive_private.h"
+void
+__archive_string_sprintf(struct archive_string *as, const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ archive_string_vsprintf(as, fmt, ap);
+ va_end(ap);
+}
+
/*
* Like 'vsprintf', but ensures the target is big enough, resizing if
* necessary.
OpenPOWER on IntegriCloud