Revision as of 17:19, 21 June 2011 editKinu (talk | contribs)Edit filter managers, Autopatrolled, Administrators65,034 edits Lowercase title.← Previous edit | Revision as of 17:28, 21 June 2011 edit undoKinu (talk | contribs)Edit filter managers, Autopatrolled, Administrators65,034 edits Fix lead, formatting, reference inline.Next edit → | ||
Line 4: | Line 4: | ||
<!-- End of AfD message, feel free to edit beyond this point --> | <!-- End of AfD message, feel free to edit beyond this point --> | ||
{{lowercase|title=rewind}} | {{lowercase|title=rewind}} | ||
'''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> | |||
⚫ | |||
⚫ | <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:== | ==Syntax:== | ||
<source lang="c"> | <source lang="c"> | ||
Line 13: | Line 13: | ||
</source> | </source> | ||
==References== | |||
{{reflist}} | |||
<ref name="rewind">, The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008.</ref> | |||
<references /> | |||
] | ] |
Revision as of 17:28, 21 June 2011
An editor has nominated this article for deletion. You are welcome to participate in the deletion discussion, which will decide whether or not to retain it.Feel free to improve the article, but do not remove this notice before the discussion is closed. For more information, see the guide to deletion. Find sources: "Rewind" C – news · newspapers · books · scholar · JSTOR%5B%5BWikipedia%3AArticles+for+deletion%2FRewind+%28C%29%5D%5DAFD |
rewind is a function in the C programming language that is specified in the stdio.h
library header file. 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.
rewind
acts as if fseek(stream, 0L, SEEK_SET)
was called for the stream passed, except that rewind
causes the error indicator to also be cleared.
Syntax:
#include <stdio.h> void rewind( FILE *stream );