diff --git a/mlibc/libc-mes+tcc.c b/mlibc/libc-mes+tcc.c index 5e880a5b..c90b4f57 100644 --- a/mlibc/libc-mes+tcc.c +++ b/mlibc/libc-mes+tcc.c @@ -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