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