C / conio.h / kbhit
cgets, clreol, clrscr, cprintf, cputs, cscanf, delline, getch, getche, getpass, gettext, gettextinfo, gotoxy, highvideo, inport, insline, » kbhit, lowvideo, movetext, normvideo, outport, putch, puttext, _setcursortype, textattr, textbackground, textcolor, textmode, ungetch, wherex, wherey, window,
Funcion: kbhit()
Sintaxis:
int kbhit(void);

Descripcion: Revisa si una tecla pulsada está disponible. Cualesquier pulsadas disponibles pueden ser recogidas con las funciones getch o getche.


Ejemplo:
#include <conio.h>
 
int main() {
   clrscr();
   cprintf( "Ejemplo de \"kbhit\"\r\n\r\n" );
   cprintf( "El programa est&aacute; a la espera de registrar una tecla pulsada.\r\n" );
   while( !kbhit() );
   cprintf( "El car&aacute;cter es \'%c\'\r\n", getch() );
   cprintf( "Pulsa una tecla para continuar...\r\n" );
   getch();
 
   return 0;
}

Librerias C

Librerias ANSI C
   string.hcstring
   math.hcmath
   stdio.hcstdio
   time.hctime
   stdlib.hcstdlib
   ctype.hcctype
   locale.hclocale
   signal.hcsignal
   setjmp.hcsetjmp

Librerias Borland
   conio.h
   graphics.h