| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 8 Sep 1997 11:41:42 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | Tim <tanyongj AT iscs DOT nus DOT edu DOT sg> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: fflush |
| In-Reply-To: | <5upepk$cto@nuscc.nus.sg> |
| Message-ID: | <Pine.SUN.3.91.970908114052.4267M-100000@is> |
| MIME-Version: | 1.0 |
On 5 Sep 1997, Tim wrote: > ch = getchar(); > fflush(stdin); > > however, in djgpp, fflush doesn't work, so the next line reads in the > carriage return and utterly ruins my work. > > Why doesn't fflush work here? fflush is only defined for output streams. You should not rely on it doing anything for input streams.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |