delorie.com/archives/browse.cgi | search |
From: | "Florent" <florent AT oih DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | fflush ??? |
Date: | Tue, 4 Apr 2000 19:18:10 +0200 |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 21 |
Message-ID: | <8cd85b$jag$1@nets3.rz.RWTH-Aachen.DE> |
NNTP-Posting-Host: | pupulse.oih.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 954868715 19792 137.226.149.42 (4 Apr 2000 17:18:35 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 4 Apr 2000 17:18:35 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi, I write actually a program under MS-DOS with RHIDE. I went to a computering club and I aks some question about the function fflush. They told me that it doesn't work on MS-DOS or Windows environment but linux yes. I start to believe in it when I tried to flush my buffer when I wanted to use scanf function. If I put something wrong or something too big, the buffer still have some datas inside, even with a fflush(stdin), then of course the programs goes down. So my question is very simple : Do I use the fflush function in a wrong way ? (I'm a bit newbye) Or MS-DOS does not suport this kind of function ? I didn't try on linux OS. Any help and any comments will be very appreciated. Thank you in advance, Florent.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |