summaryrefslogtreecommitdiff
path: root/mysys/my_vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_vsnprintf.c')
-rw-r--r--mysys/my_vsnprintf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysys/my_vsnprintf.c b/mysys/my_vsnprintf.c
index 030846ea63b..669b8be61b1 100644
--- a/mysys/my_vsnprintf.c
+++ b/mysys/my_vsnprintf.c
@@ -21,6 +21,13 @@
#include <stdarg.h>
#include <m_ctype.h>
+int my_snprintf(char* to, size_t n, const char* fmt, ...)
+{
+ va_list args;
+ va_start(args,fmt);
+ return my_vsnprintf(to, n, fmt, args);
+}
+
int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
{
char *start=to, *end=to+n-1;