mescc: Tinycc support: fread stub.
* mlibc/include/stdio.h (fread): Declare. * mlibc/libc-mes+tcc.c (fread): Add stub.
This commit is contained in:
parent
47f0ce1d5c
commit
2914b74aa4
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue