Go to the first, previous, next, last section, table of contents.


rewind

Syntax

#include <stdio.h>

void rewind(FILE *file);

Description

This function repositions the file pointer to the beginning of the file and clears the error indicator.

Return Value

None.

Portability

ANSI, POSIX

Example

rewind(stdin);


Go to the first, previous, next, last section, table of contents.