C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
rewind
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The rewind function repositions the file pointer associated with
     <stream> to the beginning of the file. A call to rewind is
     equivalent to
 
          (void) fseek( stream, 0L, SEEK_SET );
 
     except that rewind clears the end-of-file and error indicators for
     the stream, and fseek does not. Both rewind and fseek clear the
     end-of-file indicator. Also, fseek returns a value that indicates
     whether the pointer was successfully moved, but rewind does not
     return any value.
 
     You can also use the rewind function to clear the keyboard buffer.
     Use the rewind function with the stdin stream, which is associated
     with the keyboard by default.
 
     Return Value
 
     None.
                                    -♦-