Thread: what is flushall() ?

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    51

    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.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    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.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    51
    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.

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    51
    I figured it out already, thnx for the help though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 19
    Last Post: 04-04-2009, 08:37 AM
  2. flushall()
    By salvadoravi in forum C Programming
    Replies: 21
    Last Post: 12-24-2007, 12:39 PM
  3. flushall() in DEVC++
    By vddking2 in forum C++ Programming
    Replies: 1
    Last Post: 11-21-2006, 09:26 PM
  4. clearing invalid value from memory
    By StringQuartet13 in forum C++ Programming
    Replies: 3
    Last Post: 09-29-2003, 09:19 PM
  5. Serial Communications with win32 api
    By Blackthorne in forum C Programming
    Replies: 1
    Last Post: 01-26-2003, 12:45 PM