ReadKey like Function in C

Chris Torek chris at mimsy.UUCP
Wed Aug 16 00:31:18 AEST 1989


In article <1677 at crdgw1.crd.ge.com> davidsen at sungod.crd.ge.com (ody) writes:
>  One of the constraints of X3J11 was to "codify existing practice," and
>I hope that this will continue in the next C version. Therefore, since
>kbhit() and getch() are probably the widest spread, I would suggest that
>the MS-DOS haters would still like to adopt this convention, since it
>would simplify porting programs to other operating systems.

What does `kbhit()' mean when stdin is a socket?  How about in a VMS
batch job?

What does getch() do at end of file?

Before you settle on <X> as a standard across hundreds of systems, be sure
<X> can well-defined everywhere.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list