![]() |
rewind | Function (Macro) |
stdio.h |
void rewind (FILE *stream); |
Repositions file pointer to stream's beginning.
rewind (stream) is equivalent to
fseek (stream, 0, SEEK_SET)except that rewind clears the end-of-file and error indicators, while fseek only clears the end-of-file indicator.