std::rewind (3) - Linux Manuals
std::rewind: std::rewind
NAME
Synopsis
Defined in header <cstdio>
void rewind( std::FILE* stream );
Moves the file position indicator to the beginning of the given file stream.
The function is equivalent to std::fseek(stream, 0, SEEK_SET);, except that end-of-file and error indicators are cleared.
The function drops any effects from previous calls to ungetc.
Parameters
stream - file stream to modify
Return value
(none)
Example
// Run this code
See also
fseek (function)