aboutsummaryrefslogtreecommitdiffstats
path: root/io/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/snprintf.c')
-rw-r--r--io/snprintf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/io/snprintf.c b/io/snprintf.c
new file mode 100644
index 0000000..c2a8f66
--- /dev/null
+++ b/io/snprintf.c
@@ -0,0 +1,10 @@
+#include "io.h"
+
+int snprintf(char *string, size_t max_size, char const *restrict format, ...)
+{
+ va_list arg;
+ va_start(arg, format);
+ int lenght = _vsnprintf_wrap(string, max_size, format, arg);
+ va_end(arg);
+ return lenght;
+}