ProAnswers.org

What is the purpose of rewind() ?

The function rewind is used to bring the file pointer to the beginning of the file.

Rewind(fp);

Where fp is a file pointer.Also we can get the same effect by

feek(fp,0,0);