Everything

rewind


Reset file position indicator

Remark

These functions are not supported by the debugging functions which CS+ provides.

[Classification]

Standard library

[Syntax]

#include <stdio.h>

void rewind(FILE *stream);

[Description]

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.