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