rewind

Syntax

void rewind(FILE * file)

Arguments

file
A pointer to the file that you are working with (obtained with fopen).

Description

Rewinds the position indicator in the file back to the very beginning of the file.

Example

Also see

fopen, fread, fseek, fwrite, fclose

Comments