Xref: utzoo alt.msdos.programmer:727 comp.lang.c:23865 comp.sys.ibm.pc:38453 Path: utzoo!attcan!uunet!cs.utexas.edu!mailrus!rutgers!ucsd!sdcc6!sdcc10!bruno From: bruno@sdcc10.ucsd.edu (Bruce W. Mohler) Newsgroups: alt.msdos.programmer,comp.lang.c,comp.sys.ibm.pc Subject: reopening stdin and stdout Keywords: MS C stdin stdout reopen Message-ID: <5248@sdcc6.ucsd.edu> Date: 19 Nov 89 21:00:42 GMT Sender: news@sdcc6.ucsd.edu Followup-To: alt.msdos.programmer Lines: 23 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