| www.delorie.com/djgpp/doc/libc-2.01/libc_293.html | search |
#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) but it reuses file.
This is useful to, for example, associate stdout with a new file.
The new file, or NULL on error.
freopen("/tmp/stdout.dat", "wb", stdout);
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |