Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!ginosko!aplcen!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.sys.apple
Subject: console FST EOF
Keywords: Apple IIGS GS/OS console FST EOF
Message-ID: <10727@smoke.BRL.MIL>
Date: 13 Aug 89 03:00:44 GMT
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 18

How does one type an "end of file" to the console when, e.g., the following
APW C program is run:

/* character counter */
#include 
main()
{	int n = 0;
	while (getchar() != EOF)
		++n;
	printf("%d\n", n);
}

I desperately need this facility and was unable to find any mention of it
in the various GS/OS and ProDOS-16 docs I have obtained from APDA.

If this is currently impossible, please fix it in a near-future release
of GS/OS.  It is absurd to have to reboot the computer simply because
one's program happens to be stuck in a read loop.