ReadKey like Function in C

ody davidsen at sungod.crd.ge.com
Sat Aug 19 07:31:12 AEST 1989


In article <21371 at cup.portal.com> Kevin_P_McCarty at cup.portal.com writes:

| >What does getch() do at end of file?
| 
| Why, it returns EOF.  getch() returns an int, same as getchar().

  It hangs in every implementation I've tried... I agree it *should*
return EOF, but it doesn't. Without EOF it can't be used on
pipes/streams/sockets or whatever you like.
	bill davidsen		(davidsen at crdos1.crd.GE.COM)
  {uunet | philabs}!crdgw1!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.lang.c mailing list