summaryrefslogtreecommitdiff
path: root/lib9/runesnprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib9/runesnprint.c')
-rw-r--r--lib9/runesnprint.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib9/runesnprint.c b/lib9/runesnprint.c
new file mode 100644
index 00000000..6ecce6fc
--- /dev/null
+++ b/lib9/runesnprint.c
@@ -0,0 +1,14 @@
+#include "lib9.h"
+
+int
+runesnprint(Rune *buf, int len, char *fmt, ...)
+{
+ int n;
+ va_list args;
+
+ va_start(args, fmt);
+ n = runevsnprint(buf, len, fmt, args);
+ va_end(args);
+ return n;
+}
+