diff options
Diffstat (limited to 'usr/klibc/fwrite2.c')
-rw-r--r-- | usr/klibc/fwrite2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/klibc/fwrite2.c b/usr/klibc/fwrite2.c new file mode 100644 index 0000000..a8c14c9 --- /dev/null +++ b/usr/klibc/fwrite2.c @@ -0,0 +1,15 @@ +/* + * fwrite2.c + * + * The actual fwrite() function as a non-inline + */ + +#define __NO_STDIO_INLINES +#include <stdio.h> + +size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE * f) +{ + return _fwrite(ptr, size * nmemb, f) / size; +} +__ALIAS(size_t, fwrite_unlocked, (const void *, size_t, size_t, FILE *), + fwrite) |