flushall() in DEVC++

This is a discussion on flushall() in DEVC++ within the C++ Programming forums, part of the General Programming Boards category; I have just been using DEV C++ for 1 week. But with this program, I can't use flushall() function, so, ...

  1. #1
    Registered User vddking2's Avatar
    Join Date
    Nov 2006
    Location
    Vietnam
    Posts
    12

    flushall() in DEVC++

    I have just been using DEV C++ for 1 week. But with this program, I can't use flushall() function, so, is there function in DEV which replace it?

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    flushall wasn't a standard function, so you should have ditched it years ago.

    But...

    7.19.5.2 The fflush function

    Synopsis

    1 #include <stdio.h>
    int fflush(FILE *stream);


    Description

    2 If stream points to an output stream or an update stream in which the most recent operation was not input, the fflush function causes any unwritten data for that stream to be delivered to the host environment to be written to the file; otherwise, the behavior is undefined.

    3 If stream is a null pointer, the fflush function performs this flushing action on all streams for which the behavior is defined above.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. flushall()
    By salvadoravi in forum C Programming
    Replies: 21
    Last Post: 12-24-2007, 12:39 PM
  2. clearing invalid value from memory
    By StringQuartet13 in forum C++ Programming
    Replies: 3
    Last Post: 09-29-2003, 10:19 PM
  3. what is flushall() ?
    By drharv in forum C Programming
    Replies: 3
    Last Post: 02-18-2002, 10:13 PM
  4. DevC specivic... I think
    By QuestionC in forum Windows Programming
    Replies: 1
    Last Post: 01-09-2002, 04:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21