| cvs.gedasymbols.org/djgpp/doc/libc/libc_351.html | search | 
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
#include <stdio.h> FILE *freopen(const char *filename, const char *mode, FILE *file);  | 
This function closes file if it was open, then opens a new
file like fopen(filename, mode) (see section fopen)
but it reuses file.
This is useful to, for example, associate stdout with a new file. 
The new file, or NULL on error. 
| ANSI/ISO C | C89; C99 | 
| POSIX | 1003.2-1992; 1003.1-2001 | 
freopen("/tmp/stdout.dat", "wb", stdout);
 | 
| webmaster | delorie software privacy | 
| Copyright © 2004 | Updated Apr 2004 |