C Programming/stdio.h/rewind

rewind is a function in the C programming language that is specified in the  library header file. The function moves the file position indicator to the beginning of the specified stream, while also clearing the error and EOF flags associated with that stream.

acts as if  was called for the stream passed, except that   causes the error indicator to also be cleared.