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
1 changed files with 2 additions and 2 deletions

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