mescc: Tinycc support: fopen stub.

* mlibc/include/stdio.h (fopen): Declare.
* mlibc/libc-mes+tcc.c (fopen): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 20:08:38 +02:00
parent fd63f744f7
commit 76e97a9b08
2 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,7 @@ int eputs (char const* s);
int fclose (FILE *stream);
FILE *fdopen (int fd, char const *mode);
int fflush (FILE *stream);
FILE *fopen (char const *pathname, char const *mode);
int fprintf (FILE *stream, char const *format, ...);
int fputc (int c, int fd);
int fputs (char const* s, int fd);

View File

@ -85,6 +85,12 @@ fflush (FILE *stream)
return 0;
}
FILE *
fopen (char const *pathname, char const *mode)
{
return 0;
}
int
fprintf (FILE *stream, char const *format, ...)
{