ref: 5a13b1a8c6e3232be716f6cfeb7dec710f947f14
dir: /lib/c/src/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); }