aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2023-03-16 16:22:11 +0100
committerQuentin Carbonneaux <[email protected]>2023-03-16 16:22:11 +0100
commit011dfc839d40c735fb63474aa6d5e1412b823a3b (patch)
tree4579fecc9c703d8ff348a69c6ce74679c8d2c210 /util.c
parent6f45894c7f5f145208e0fce4344b2b87eb8ae722 (diff)
silence format warning more reliably
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)
{