mescc: Tinycc support: fread stub.

* mlibc/include/stdio.h (fread): Declare.
* mlibc/libc-mes+tcc.c (fread): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 20:16:25 +02:00
parent 47f0ce1d5c
commit 2914b74aa4
2 changed files with 7 additions and 0 deletions

View File

@ -103,6 +103,7 @@ int fflush (FILE *stream);
int fprintf (FILE *stream, char const *format, ...);
int fputc (int c, int fd);
int fputs (char const* s, int fd);
size_t fread (void *ptr, size_t size, size_t nmemb, FILE *stream);
int fseek (FILE *stream, long offset, int whence);
long ftell (FILE *stream);
size_t fwrite (void const *ptr, size_t size, size_t nmemb, FILE *stream);

View File

@ -97,6 +97,12 @@ fprintf (FILE *stream, char const *format, ...)
return 0;
}
size_t
fread (void *ptr, size_t size, size_t nmemb, FILE *stream)
{
return 0;
}
void
free (void *ptr)
{