Misplaced Pages

Rewind (C)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by Jiyaoliu (talk | contribs) at 10:17, 21 June 2011. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 10:17, 21 June 2011 by Jiyaoliu (talk | contribs)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The function rewind() moves the file position indicator to the beginning of the specified stream, also clearing the error and EOF flags associated with that stream.
Acts as if fseek(stream, 0L, SEEK_SET) was called for the stream passed, and then its error indicator cleared.

Syntax:

#include <stdio.h>
void rewind( FILE *stream );


<references>

  1. , The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008.