rewind method

void rewind(
  1. FILE stream
)

Sets the file position of the stream to the beginning of the file.

Implementation

void rewind(FILE stream) {
  fseek(stream, 0, SEEK_SET);
}