Difference between revisions of "cpp/io/c/rewind"
From cppreference.com
m (Text replace - "/sidebar" to "/navbar") |
m (std:: and minor detail) |
||
Line 2: | Line 2: | ||
{{cpp/io/c/navbar}} | {{cpp/io/c/navbar}} | ||
{{ddcl | header=cstdio | | {{ddcl | header=cstdio | | ||
− | void rewind( FILE *stream ); | + | void rewind( std::FILE* stream ); |
}} | }} | ||
− | Moves the file position indicator to the beginning of the given file stream | + | Moves the file position indicator to the beginning of the given file stream as if by {{c|std::fseek(stream, 0L, SEEK_SET)}}, and clears the end-of-file and the error indicators on {{tt|stream}}. |
===Parameters=== | ===Parameters=== | ||
Line 14: | Line 14: | ||
===Return value=== | ===Return value=== | ||
(none) | (none) | ||
+ | |||
+ | ===Example=== | ||
+ | {{example| | ||
+ | | code= | ||
+ | | output= | ||
+ | }} | ||
===See also=== | ===See also=== |
Revision as of 12:03, 28 September 2012
Defined in header <cstdio>
|
||
void rewind( std::FILE* stream ); |
||
Moves the file position indicator to the beginning of the given file stream as if by std::fseek(stream, 0L, SEEK_SET), and clears the end-of-file and the error indicators on stream
.
Contents |
Parameters
stream | - | file stream to modify |
Return value
(none)
Example
This section is incomplete Reason: no example |
See also
C documentation for rewind
|