From e5663d45df15395cc4650937ed2bde8e29257d27 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 2 Sep 2018 01:03:12 -0400 Subject: Add aswprintf The format string won't get checked but I'm not sure I can reasonably use the same hack. --- pls.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pls.c') diff --git a/pls.c b/pls.c index 08309f8..9f6cb69 100644 --- a/pls.c +++ b/pls.c @@ -120,3 +120,11 @@ fail: *ret = NULL; return -1; } + +int aswprintf(wchar_t **ret, const wchar_t *format, ...) { + va_list ap; + va_start(ap, format); + int n = vaswprintf(ret, format, ap); + va_end(ap); + return n; +} -- cgit 1.4.1