mescc: Tinycc support: fwrite stub.

* mlibc/include/stdio.h (fwrite): Declare.
* mlibc/libc-mes+tcc.c (fwrite): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 17:06:16 +02:00
parent 15a9452d33
commit b860cb7a17
2 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,7 @@ int eputs (char const* s);
int fprintf (FILE *stream, char const *format, ...);
int fputc (int c, int fd);
int fputs (char const* s, int fd);
size_t fwrite (void const *ptr, size_t size, size_t nmemb, FILE *stream);
int getchar ();
int printf (char const* format, ...);
int putchar (int c);

View File

@ -49,6 +49,12 @@ fprintf (FILE *stream, char const *format, ...)
return 0;
}
size_t
fwrite (void const *ptr, size_t size, size_t nmemb, FILE *stream)
{
return 0;
}
struct tm *
localtime (time_t const *timep)
{