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