rewind function

Prototype void rewind (FILE * Stream);
PurposeTo position the file pointer to the beginning of a file
Header File#include <stdio.h>
Parameters
StreamPointer 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
fopen fclose fread fwrite fseek ftell

c/c++ Index