-
what is flushall() ?
I saw some code that used flushall() and tried using it myself, but my compiler doesn't recognize it.
I am using DJGPP compiler on Win98 and Win2k, and it produces an error when I use it.
Is there some code that I could use as a function to produce the same effect.
Any help is greatly appreciated.
-
Well, first you take fflush() and then you apply it across all file streams, and you have your flushall function. It is not ANSI, which is likely the reason your particular compiler doesn't recognize it. Try the MSDN for it.
Quzah.
-
You mean like this?
void flushall(void)
{
fflush(*stdin);
fflush(*stdout);
fflush(*stderr);
}
Then just call flushall() ?
Sorry if this is wrong, I'm pretty new at this. Thanks.
-
I figured it out already, thnx for the help though.