rewind() STDIO Function rewind() Reset file pointer #include <stdio.h> int rewind(fp) FILE *fp; rewind resets the file pointer to the beginning of stream fp. It is a synonym for fseek(fp, 0L, 0). ***** Example ***** For an example of this routine, see the entry for fscanf. ***** See Also ***** fseek(), ftell(), lseek(), STDIO ***** Diagnostics ***** rewind returns EOF if an error occurs; otherwise, it returns zero. COHERENT Lexicon Page 1