home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
272_01
/
kbhit.doc
< prev
next >
Wrap
Text File
|
1987-07-17
|
700b
|
39 lines
NAME
kbhit -- check keyboard (stdin) for character available
SYNOPSIS
r = kbhit();
int r; returns TRUE or FALSE
DESCRIPTION
This function returns TRUE (not 0) if a character is available
from keyboard (stdin). This function will not recognize a character
which was replaced with ungetc(). If stdin is redirected from
a file, this function will likely always return TRUE.
EXAMPLE
if(kbhit()) puts("There is a character waiting");
This function is found in SMDLx.LIB for the Datalight Compiler.