rewind function — Resets file position
void rewind(FILE* stream)
The rewind function moves a file position to the beginning of a file and is equivalent to fseek(stream, 0, SEEK_SET).
rewind
fseek(stream
0
SEEK_SET)
fseek function, fsetpos function