Questions tagged [fflush]

The C standard library `fflush` is used to synchronize the stream on which it is invoked with the actual content of the corresponding file. It can be used only on output streams. A similar function is defined in C++ as `std::fflush`.

The C standard library function fflush function is defined in the <stdio.h> header and its documentation can be found here.

The corresponding C++ standard library function std::fflush is defined in <cstdio> header and documented here.

197 questions
-4
votes
1 answer

what different between fflush(FILE* stream) and fflush(NULL) at c?

what different between fflush(FILE* stream) and fflush(NULL) at c? I know that fflush(NULL) flush all the stream what is fflush(FILE* stream) do?
-4
votes
1 answer

How to use fflush in c on OS/X

program source codeHow should I use fflush in C on OS/X? When I use it, it does not clear my buffer and terminates the program straight away.
Edwin Chan
  • 33
  • 6
1 2 3
13
14