[comp.lang.c] reopening stdin and stdout

bruno@sdcc10.ucsd.edu (Bruce W. Mohler) (11/20/89)

Is there anything tricky to *reopening* stdin and stdout (in
the MSDOS environment using MS C 5.1)?

I've looked all thru the documentation and went thru all of
the installation diskettes looking for the source to the
code that does the pre-main() initialization, but couldn't
find it (to plagerize from).

(By the way, I already figured out that stdin is easy (just
do a rewind())

I just want to know what devices (filenames) to fopen() and
whether there's anything else to be done (re: buffering, 
etc.).

Thanks, in advance!

Bruce Mohler
--
Bruce W. Mohler
Systems Programmer (aka Staff Analyst)
bruno@sdcc10.ucsd.edu
voice: 619/586-2218