🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #875

'C' freopen call

#875
From: andrew
Date: Thu, 12 Jun 1986 21:10
16 lines
995 bytes
Hi,

I have just written a small program which redirects stdin to a file using
the 'freopen' call. Well it works fine. But how do I get stdin back after
finishing writing to the file. Normally one would write:

	freopen("/dev/tty","r",stdin);
                 ^^^^^^^^

on a UNIX machine, but what is the 'filename' for stdin, stdout, stderr,
on the ATARI ?

Thanks in advance,

Andrew Smith.
Technical Details
Message-ID: <695@neon.kcl-cs.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!ukc!kcl-cs!andrew

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!ukc!kcl-cs!andrew
From: andrew@kcl-cs.UUCP
Newsgroups: net.micro.atari16
Subject: 'C' freopen call
Message-ID: <695@neon.kcl-cs.UUCP>
Date: Thu, 12-Jun-86 17:10:02 EDT
Article-I.D.: neon.695
Posted: Thu Jun 12 17:10:02 1986
Date-Received: Tue, 17-Jun-86 09:06:19 EDT
Reply-To: andrew@kcl-cs.UUCP ()
Organization: Department of Computing, Kings College, University of London.
Lines: 16
Keywords: freopen I/O redirection