This function clears the error indicator of the input stream pointed to by stream, and positions the file position indicator at the beginning of the file.
However, only the standard input/output stdin can be specified for stream. Therefore, rewind only has the effect of discarding the character that was pushed back by ungetc.