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 fprintf (FILE *stream, char const *format, ...);
int fputc (int c, int fd); int fputc (int c, int fd);
int fputs (char const* s, 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); int fseek (FILE *stream, long offset, int whence);
long ftell (FILE *stream); long ftell (FILE *stream);
size_t fwrite (void const *ptr, size_t size, size_t nmemb, 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; return 0;
} }
size_t
fread (void *ptr, size_t size, size_t nmemb, FILE *stream)
{
return 0;
}
void void
free (void *ptr) free (void *ptr)
{ {