mescc: Tinycc support: ftell stub.

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

View File

@ -104,6 +104,7 @@ int fprintf (FILE *stream, char const *format, ...);
int fputc (int c, int fd);
int fputs (char const* s, int fd);
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);
int getchar ();
int printf (char const* format, ...);

View File

@ -108,6 +108,12 @@ fseek (FILE *stream, long offset, int whence)
return 0;
}
long
ftell (FILE *stream)
{
return 0;
}
size_t
fwrite (void const *ptr, size_t size, size_t nmemb, FILE *stream)
{