meta: move photon/libc to root
This commit is contained in:
15
libc/stdio/fclose.c
Normal file
15
libc/stdio/fclose.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <__fio.h>
|
||||
|
||||
int fclose(FILE *fp)
|
||||
{
|
||||
int res = __fio_fclose(fp);
|
||||
if (res != 0) {
|
||||
return EOF;
|
||||
}
|
||||
|
||||
free(fp);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user