fflush(NULL) flushes everything. Perhaps that's what you were thinking of? fclose() has no defined behavior (at least in C, dunno about POSIX) if you give it a null pointer. ("flushes everything" means "flush output streams, and update streams on which the last operation was a write". :) ) -s