If you mean the Microsoft specific flushall() C method, I think you should used the fflush() instead.