#include <stdio.h>
void rewind(FILE *stream);
Partially implemented
IEEE Std 1003.1-2017
rewind()
- reset the file position indicator in a stream
The call:
rewind(stream)
shall be equivalent to:
(void) fseek(stream, 0L, SEEK_SET)
except that rewind()
shall also clear the error indicator.
Since rewind()
does not return a value, an application wishing to detect errors should clear errno
, then call
rewind()
, and if errno
is non-zero, assume an error has occurred.
The rewind()
function shall not return a value.
Refer to fseek()
except EINVAL
which does not apply.
Untested
None