Article View: net.micro.atari16
Article #892Re: 'C' freopen call
From: Andrew Smith
Date: Mon, 16 Jun 1986 09:36
Date: Mon, 16 Jun 1986 09:36
20 lines
1200 bytes
1200 bytes
In article <695@neon.kcl-cs.UUCP> andrew@kcl-cs.UUCP () writes:
>
> freopen("/dev/tty","r",stdin);
> ^^^^^^^^
>
>on a UNIX machine, but what is the 'filename' for stdin, stdout, stderr,
>on the ATARI ?
>
I have been playing around with different filenames and have found that
"CON:" seems to cause 'freopen' not to return an error. But upon reading
'stdin' the character '^J' (10) is always returned.
Do I need to do anything else or may there be a bug in the LATTICE 'C' library ?
Thanks in advance,
Andrew Smith.
..!mcvax!ukc!kcl-cs!andrew
Technical Details
Message-ID:
<698@neon.kcl-cs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!think!harvard!seismo!mcvax!ukc!kcl-cs!andrewReferences:
<695@neon.kcl-cs.UUCP>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!allegra!princeton!caip!think!harvard!seismo!mcvax!ukc!kcl-cs!andrew From: andrew@kcl-cs.UUCP (Andrew Smith) Newsgroups: net.micro.atari16 Subject: Re: 'C' freopen call Message-ID: <698@neon.kcl-cs.UUCP> Date: Mon, 16-Jun-86 05:36:36 EDT Article-I.D.: neon.698 Posted: Mon Jun 16 05:36:36 1986 Date-Received: Thu, 19-Jun-86 08:54:29 EDT References: <695@neon.kcl-cs.UUCP> Reply-To: andrew@kcl-cs.UUCP (PUT YOUR NAME HERE) Organization: Department of Computing, Kings College, University of London. Lines: 20