| www.delorie.com/archives/browse.cgi | search |
| Date: | Sun, 18 Apr 1999 14:25:59 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | | õ¿õ | õ¿õ | õ¿õ | õ¿õ | <cdman AT mbox2 DOT singnet DOT com DOT sg> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Newbie?? |
| In-Reply-To: | <37195F11.D27CC860@mbox2.singnet.com.sg> |
| Message-ID: | <Pine.SUN.3.91.990418142343.22615l-100000@is> |
| MIME-Version: | 1.0 |
| X-MIME-Autoconverted: | from QUOTED-PRINTABLE to 8bit by delorie.com id GAA11986 |
| Reply-To: | djgpp AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sun, 18 Apr 1999, | õ¿õ | õ¿õ | õ¿õ | õ¿õ | wrote:
> 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??
Try this:
char junk[16*1024 + 1];
scanf("%[^\n][\n]", junk);
Using fflush for this is a bad habit; I suggest to un-learn it ;-).
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |