Declaration:
void rewind(unsigned long stream);
Description
Repositions the file pointer to the beginning of the stream.
rewind(stream) is equivalent to fseek (stream, 0L, SEEK_SET), except that rewind clears the end-of-file and error indicators, while fseek clears the end-of-file indicator only. After rewind, the next operation on the update file can be either input or output.
|