diff options
| author | Quentin Carbonneaux <[email protected]> | 2023-03-16 16:22:11 +0100 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2023-03-16 16:22:11 +0100 |
| commit | 011dfc839d40c735fb63474aa6d5e1412b823a3b (patch) | |
| tree | 4579fecc9c703d8ff348a69c6ce74679c8d2c210 /util.c | |
| parent | 6f45894c7f5f145208e0fce4344b2b87eb8ae722 (diff) | |
silence format warning more reliably
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) { |
