www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/19/13:07:45

Date: Mon, 19 Apr 1999 14:07:21 -0400
Message-Id: <199904191807.OAA02277@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <37195F11.D27CC860@mbox2.singnet.com.sg>
(cdman AT mbox2 DOT singnet DOT com DOT sg)
Subject: Re: Newbie??
References: <37195F11 DOT D27CC860 AT mbox2 DOT singnet DOT com DOT sg>
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

>             in school, i learn to use fflush(stdin), and i know that
> this do not do anything in DJGPP. Can someone tell me how to flush the
> input buffer?? i never learn it before... thank....

scanf("%*[^\n]\n");

*Never* use fflush(stdin).  Even in Turbo C, it won't do quite what
you expect.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019