mescc: Tinycc support: fwrite.
* mlibc/libc-mes+tcc.c (fwrite): Implement.
This commit is contained in:
parent
63eded82e1
commit
6b5fcfb814
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue