fflush is the C equivalent of the c++ std::endl or std::flush. In C, this is a function while in C++ they act as stream manipulators (really just functions underneath).
Calling any of these in your code will release all memory being held in the buffer, associated with the stream object you use them on. And will write the contents to the correct place in memory.
Calling any of these in your code will release all memory being held in the buffer, associated with the stream object you use them on.
Not accurate, but this is trivial to ascertain using google or the search box at the top of the page. I would encourage the OP to use one or the other.