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