rewind function(Rewind File) in C Language – example and detail

In the C Programming Language, the rewind function sets the file function to the establishing of the file for the circulate pointed to via stream. It additionally clears the error and end-of-file indicators for stream.

Syntax

The syntax for the rewind feature in the C Language is:

void rewind(FILE *stream);

Parameters or Arguments

stream The circulation whose file role indicator is to be set to the beginning of the file.

Returns

The rewind function does not return anything.

Required Header

In the C Language, the required header for the rewind feature is:

#include <stdio.h>

Applies To

In the C Language, the rewind function can be used in the following versions:

ANSI/ISO 9899-1990

Similar Functions

Other C features that are comparable to the rewind function:

fseek characteristic fsetpos function

See Also

Other C features that are noteworthy when dealing with the rewind function:

clearerr characteristic feof feature ferror function fgetpos characteristic ftell characteristic