mescc: Tinycc support: fprintf stub.

* mlibc/include/stdio.h (fprintf): Declare.
* mlibc/libc-mes+tcc.c (fprintf): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 13:39:34 +02:00
parent 702a1f9f54
commit 718410e426
2 changed files with 13 additions and 0 deletions

View File

@ -90,7 +90,13 @@ int fdputs (char const* s, int fd);
typedef int FILE;
#ifndef __MES_SIZE_T
#define __MES_SIZE_T
typedef unsigned long size_t;
#endif
int eputs (char const* s);
int fprintf (FILE *stream, char const *format, ...);
int fputc (int c, int fd);
int fputs (char const* s, int fd);
int getchar ();

View File

@ -19,6 +19,7 @@
*/
#include <libc-mes.c>
#include <stdio.h>
#include <string.h>
#include <time.h>
@ -31,6 +32,12 @@ close ()
asm ("int____$0x80");
}
int
fprintf (FILE *stream, char const *format, ...)
{
return 0;
}
struct tm *
localtime (time_t const *timep)
{