Revision as of 21:52, 5 July 2011 editSmackBot (talk | contribs)3,734,324 editsm Dated {{Afd-merge to}}. (Build p613)← Previous edit |
Latest revision as of 23:48, 27 April 2023 edit undoSteel1943 (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors197,279 edits Rcat |
(3 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
|
|
#REDIRECT ] |
|
{{Afd-merge to|stdio.h|Rewind (C)|05 July 2011|date=July 2011}} |
|
|
|
|
|
|
|
{{Redirect category shell| |
|
{{lowercase|title=rewind}} |
|
|
|
{{R with history}} |
|
'''rewind''' is a function in the ] that is specified in the <code>]</code> library ]. The function moves the the file position indicator to the beginning of the specified stream, while also clearing the error and EOF flags associated with that stream.<ref name="rewind">, The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008.</ref> |
|
|
|
{{R to anchor}} |
|
|
|
|
|
}} |
|
<code>rewind</code> acts as if <code>fseek(stream, 0L, SEEK_SET)</code> was called for the stream passed, except that <code>rewind</code> causes the error indicator to also be cleared. |
|
|
|
|
|
==Syntax== |
|
|
<source lang="c"> |
|
|
#include <stdio.h> |
|
|
void rewind( FILE *stream ); |
|
|
</source> |
|
|
|
|
|
==References== |
|
|
{{reflist}} |
|
|
{{Use dmy dates|date=July 2011}} |
|
|
|
|
|
] |
|