John Gorman wrote:

> See me addition below to get the effect you want.

> > int main ()
> > {
> >     printf ("Scanf Test\n");
> >     printf ("enter a character >");
> >     scanf ("%c", &c);
> 
>       fflush(stdin);

The behaviour of fflush() is undefined on input streams. If you want
to drain the input buffer, you have to read until there is no more
data available (i.e. using non-blocking I/O, select() or the FIONREAD
ioctl()).

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to