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