$ man 3 fseek
Code:
The rewind function sets the file position indicator for the stream
pointed to by stream to the beginning of the file. It is equivalent
to:
(void)fseek(stream, 0L, SEEK_SET)
except that the error indicator for the stream is also cleared (see
clearerr(3)).
~