Flushes output buffers