rewind function
| Prototype | void rewind (FILE * Stream); |
| Purpose | To position the file pointer to the beginning of a file |
| Header File | #include <stdio.h> |
| Parameters
|
| Stream | Pointer to an open FILE |
|
| Return Value | None |
| Notes |
- rewind wipes out any previous ungetc.
- rewind clears end-of-file.
- rewind clears the FILE error indicators.
|
| Example |
FILE * Account_Master;
. . .
rewind (Account_Master) |
| Related functions |
|