ref: f804aedceaa0393ee3e8bf79dd58f6fe83a046c3
dir: /lib/c/freopen.c/
#include <stdio.h> #undef freopen FILE * freopen(const char * restrict name, const char * restrict mode, FILE * restrict fp) { if (fclose(fp) == EOF) return NULL; return _fpopen(name, mode, fp); }