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 int
fclose (FILE *stream) fclose (FILE *stream)
{ {
eputs ("fclose stub\n"); int fd = (int)stream;
return 0; return close (fd);
} }
FILE * FILE *
fdopen (int fd, char const *mode) fdopen (int fd, char const *mode)
{ {
eputs ("fdopen stub\n"); return (FILE*)fd;
return 0;
} }
int int