Misplaced Pages

Rewind (C): Difference between revisions

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.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 10:04, 21 June 2011 editAntiuser (talk | contribs)Extended confirmed users, Rollbackers9,569 edits Proposing article for deletion per WP:PROD. (TW)← Previous edit Revision as of 10:16, 21 June 2011 edit undoJiyaoliu (talk | contribs)4 editsNo edit summaryNext edit →
Line 1: Line 1:
{{Proposed deletion/dated
|concern = Article about a function of a programming language. Not encyclopaedic, per ]
|timestamp = 20110621100453
}}
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. <br /> 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. <br />
Acts as if fseek(stream, 0L, SEEK_SET) was called for the stream passed, and then its error indicator cleared.<br /> Acts as if fseek(stream, 0L, SEEK_SET) was called for the stream passed, and then its error indicator cleared.<br />
Line 11: Line 7:
void rewind( FILE *stream ); void rewind( FILE *stream );
</source> </source>



<ref name="rewind">, The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008.</ref>

Revision as of 10:16, 21 June 2011

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 );


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