Files
photon/libc/stdio/fwrite.c

13 lines
253 B
C

#include <stdio.h>
#include <__fio.h>
size_t fwrite(const void *ptr, size_t size, size_t count, FILE *fp)
{
if (!size || !count) {
return 0;
}
unsigned int written = __fio_write(fp, ptr, size * count);
return written / size;
}