mescc: Tinycc support: fprintf.

* mlibc/libc-mes+tcc.c (fprintf): Implement.
This commit is contained in:
rain1 2017-07-30 08:28:19 -04:00 committed by Jan Nieuwenhuizen
parent ae9ce4e645
commit 0957094280
1 changed files with 5 additions and 2 deletions

View File

@ -126,8 +126,11 @@ fopen (char const *pathname, char const *mode)
int
fprintf (FILE *stream, char const *format, ...)
{
eputs ("fprintf stub\n");
return 0;
va_list ap;
va_start (ap, format);
int r = vfprintf (stream, format, ap);
va_end (ap);
return r;
}
size_t