From 80885493aa588db9ae852b0e605857555ba73057 Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 27 Nov 2022 18:45:27 -0500 Subject: [PATCH] Add q_snprintf --- source/common.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/common.c b/source/common.c index 43ba776..0b275b9 100644 --- a/source/common.c +++ b/source/common.c @@ -132,6 +132,18 @@ void InsertLinkAfter (link_t *l, link_t *after) ============================================================================ */ +int q_snprintf (char *str, size_t size, const char *format, ...) +{ + int ret; + va_list argptr; + + va_start (argptr, format); + ret = q_vsnprintf (str, size, format, argptr); + va_end (argptr); + + return ret; +} + void Q_memset (void *dest, int fill, int count) { int i;