ref: 4ca822523b4538c4267bdd8604fd6a71c7e6aca8
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); }