Skip to content

rewind : reinitialize a file or stream

#include <stdio.h>
void rewind(FILE *fp);
```### Description
rewind returns the file position indicator (if any) for the file or stream identified by fp to the beginning of the file. It also clears any error indicator and flushes any pending output.### Returns
rewind does not return a result.
---
**Authoritative source**: BUSMASTER DITA help source `rewind.dita`, compiled into `BUSMASTER.CHM` with the application.