#include <stdio.h>void rewind(FILE *stream);
The rewind( ) function moves the file position indicator to the start of the specified stream. It also clears the end-of-file and error flags associated with stream.
A related function is fseek( ).