ref: 8e8710e0cbdc6f1aae24dfaecdbe04325c039a47
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); }