Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!samsung!cg-atla!fredex From: fredex@cg-atla.UUCP (Fred Smith) Newsgroups: comp.lang.c Subject: Re: hitkb exists? Message-ID: <8349@cg-atla.UUCP> Date: 6 Feb 90 23:44:50 GMT References: Reply-To: fredex@cg-atla.UUCP (Fred Smith) Distribution: comp Organization: Agfa Compugraphic Division Lines: 16 In article ron@clarity.Princeton.EDU (Ronald Beekelaar) writes: >Hi, > > I left out some needed information in my question last night. >I was wondering whether I can silently test whether a key has been pressed in >C, without having to read(..). I forgot to tell that I am using MS-C on an >IBM-PC. > Yes. You should read the section in your MSC manual about the routine named "_bios_keybrd()". If you find that not to your liking, try "kbhit()" (which, you should be warned, will give bogus results if you happen to redirect stdin to your program).. Fred