mescc: Tinycc support: fclose.

* mlibc/libc-mes+tcc.c (fclose): Implement.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-30 14:51:59 +02:00
parent 7c233246d6
commit 63eded82e1
1 changed files with 3 additions and 4 deletions

View File

@ -98,15 +98,14 @@ execvp (char const *file, char *const argv[])
int
fclose (FILE *stream)
{
eputs ("fclose stub\n");
return 0;
int fd = (int)stream;
return close (fd);
}
FILE *
fdopen (int fd, char const *mode)
{
eputs ("fdopen stub\n");
return 0;
return (FILE*)fd;
}
int