Mail Archives: djgpp/1995/05/12/07:32:10
>How can i empty the keyboard buffer with gcc?
>
>Thanks.
#include <pc.h>
while(kbhit())
getkey();
/* unfortunately this is not very portable... */
Tony
***************************************************************************
Dipl.-Ing. Anton HELM * Private: *
Institut fuer Nachrichtentechnik * *
und Hochfrequenztechnik * Anton HELM *
Guszhausstr. 25/389 * Gratian-Marx Str. 7/27 *
A-1040 Wien * A-1110 Wien *
AUSTRIA * AUSTRIA *
******************************************
PHONE : +43-1-58801-3520 OOOOOOO O O O O O OOOOO OO O
FAX : +43-1-5870583 O O O O O O O O O O
email: Anton DOT Helm AT nt DOT tuwien DOT ac DOT at O O O OOO O O O O OOO O O O
tony AT nt DOT tuwien DOT ac DOT at O O O O O O O O O O O
********************************** O OOOO OO OO O OOOOO O OO
- Raw text -