rewind

Reposition to the start of an open file.

void rewind (FILE * stream);

Required Header
<stdio.h>

Return Value

None.

Parameters

stream

  A pointer to the open FILE structure

Remarks

The rewind function repositions stream to the start of the file.

rewind clears both the error and End Of File indicators of stream but has no effect on streams that do not support seeking.

Stream I/O Routines

See Also    fgetpos, fsetpos, ftell, _lseek, _tell