🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #259

reopening stdin and stdout

#259
From: Bruce W. Mohler
Date: Sun, 19 Nov 1989 21:00
23 lines
1070 bytes
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
Technical Details
Message-ID: <5248@sdcc6.ucsd.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!mailrus!rutgers!ucsd!sdcc6!sdcc10!bruno

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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