Mail Archives: djgpp/1997/02/14/06:30:59
> fflush(stdout);fflush(stdin);
> printf("Analyze (C)ompressed or (U)ncompressed file? ");
> fflush(stdout);
> option = getchar();
>
> The coputer doesn't wait, but continues on even though I flushed the
> stdin. Is there any other function I need call, or some little detail
> I'm missing? Thanks.
well you can't flush stdin as far as i know. if you want to ensure the
keyboard buffer is empty you can either a) set both the keyboard pointers
to point to the same location (messy but fast) of b) use the equiv. dos or
bios command which i can't remember offhand cos i always do it the fast way ;)
should be in any reasonable reference book though.
regards,
nik
--
Graham Tootell
nikki AT gameboutique DOT com
- Raw text -