meta: move photon/libc to root

This commit is contained in:
2026-02-08 20:45:25 +00:00
parent f00e74260d
commit 345a37962e
140 changed files with 0 additions and 0 deletions

16
libc/stdio/freopen.c Normal file
View File

@@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
#include <__fio.h>
FILE *freopen(const char *path, const char *mode, FILE *fp)
{
int res = __fio_fclose(fp);
res = __fio_fopen(path, mode, fp);
if (res != 0) {
free(fp);
return NULL;
}
return fp;
}