From dbdaa77fb5924b4b9e6b374a44ef76481a38d3d2 Mon Sep 17 00:00:00 2001 From: aqua Date: Tue, 8 Nov 2022 17:19:45 +0200 Subject: Add FILE struct --- lib/stdio/fprintf.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/stdio/fprintf.c (limited to 'lib/stdio/fprintf.c') diff --git a/lib/stdio/fprintf.c b/lib/stdio/fprintf.c new file mode 100644 index 0000000..9a96dc6 --- /dev/null +++ b/lib/stdio/fprintf.c @@ -0,0 +1,11 @@ +#include + +int +fprintf(FILE *restrict stream, const char *restrict format, ...) +{ + va_list ap; + va_start(ap, format); + int c = vfprintf(stream, format, ap); + va_end(ap); + return c; +} -- cgit v1.2.1