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