mescc: Tinycc support: fwrite.

* mlibc/libc-mes+tcc.c (fwrite): Implement.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-30 14:52:35 +02:00
parent 63eded82e1
commit 6b5fcfb814

View file

@ -161,8 +161,8 @@ ftell (FILE *stream)
size_t
fwrite (void const *ptr, size_t size, size_t nmemb, FILE *stream)
{
eputs ("fwrite stub\n");
return 0;
int fd = (int)stream;
return write (fd, ptr, size * nmemb);
}
int