aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/archive_string_sprintf.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2008-03-14 22:00:09 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2008-03-14 22:00:09 +0000
commit45943bfd933a285695b7964d29dfefb36a4fef42 (patch)
treece8df971fc0c67c8622c228aabc188bf8e4b9701 /lib/libarchive/archive_string_sprintf.c
parent4109ba516ec979f4009c781771dd1729c31804f4 (diff)
Notes
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 4401e9a12773..44b116eac0af 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.