From: Tim Newsgroups: comp.os.msdos.djgpp Subject: fflush Date: 5 Sep 1997 17:16:36 GMT Organization: The Fun House Lines: 22 Sender: Tim Message-ID: <5upepk$cto@nuscc.nus.sg> NNTP-Posting-Host: tanyongj AT decunx DOT iscs DOT nus DOT sg To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I use gcc both on unix and in djgpp. When I'm working on unix, the following code to read in a character works. 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? Please mail me, because I can't keep track of all the postings here. TIA. Tim --------- Web : http://mailhost.net/~ttimothy/ --------- E-mail : ttimothy AT mailhost DOT net @>--;----