diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-11-08 17:19:45 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-11-08 17:54:13 +0200 |
commit | dbdaa77fb5924b4b9e6b374a44ef76481a38d3d2 (patch) | |
tree | abd4daf428532ac026a538e20138907b36c795c3 /lib/stdio/fprintf.c | |
parent | Add python-sphinx docs (diff) | |
download | kernel-dbdaa77fb5924b4b9e6b374a44ef76481a38d3d2.tar.xz |
Add FILE struct
Diffstat (limited to 'lib/stdio/fprintf.c')
-rw-r--r-- | lib/stdio/fprintf.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <stdio.h> + +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; +} |