about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--chat.h1
-rw-r--r--pls.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/chat.h b/chat.h
index ace82fc..9c0a228 100644
--- a/chat.h
+++ b/chat.h
@@ -169,6 +169,7 @@ wchar_t *ambstowcs(const char *src);
 char *awcstombs(const wchar_t *src);
 char *awcsntombs(const wchar_t *src, size_t nwc);
 int vaswprintf(wchar_t **ret, const wchar_t *format, va_list ap);
+int aswprintf(wchar_t **ret, const wchar_t *format, ...);
 
 // HACK: clang won't check wchar_t *format strings.
 #ifdef NDEBUG
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;
+}
d colspan='3' class='logmsg'> I am super surprised that worked on the first try. 2020-11-22Day 3, clean upJune McEnroe 2020-11-22Day 3June McEnroe This is fucking awful and I'm angry. 2020-11-22Day 2, part 2June McEnroe 2020-11-22Day 2June McEnroe 2020-11-22Day 1, part 2June McEnroe 2020-11-22Day 1June McEnroe 2020-11-22Move to 2016 directoryJune McEnroe