7.19.9.5 The rewind function

Synopsis

1

#include <stdio.h>
void rewind(FILE *stream);

Description

2

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.

Returns

3

The rewind function returns no value.