DEBUG_FILE *debug_freopen(const char *filename,
const char *mode,
DEBUG_FILE *stream);debug_freopen is the same as debug_open except the file associated with the stream is closed and the opened file is then associated with the stream.