summary refs log tree commit diff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/util.c b/util.c
index 8997f6c..2ab82bb 100644
--- a/util.c
+++ b/util.c
@@ -154,6 +154,16 @@ vgrow(void *vp, ulong len)
 	*(Vec **)vp = v1;
 }
 
+void
+fmt(char *dst, char *s, ...)
+{
+	va_list ap;
+
+	va_start(ap, s);
+	vsnprintf(dst, NString, s, ap);
+	va_end(ap);
+}
+
 uint32_t
 intern(char *s)
 {