mescc: Tinycc support: fseek stub.

* mlibc/include/stdio.h (fseek): Declare.
* mlibc/libc-mes+tcc.c (fseek): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 20:11:22 +02:00
parent 76e97a9b08
commit 019994b8ed
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);
int fseek (FILE *stream, long offset, int whence);
size_t fwrite (void const *ptr, size_t size, size_t nmemb, FILE *stream);
int getchar ();
int printf (char const* format, ...);

View File

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