- prototype in stdio.h - writes contents of output buffers associated with fp to stream and clears input buffer contents; fp is NOT closed - returns 0 on success or EOF on error