rewind.c 218 B

1234567891011121314
  1. /*
  2. * rewind.c - set the file position indicator of a stream to the start
  3. */
  4. /* $Id$ */
  5. #include <stdio.h>
  6. #include "loc_incl.h"
  7. void
  8. rewind(FILE *stream)
  9. {
  10. (void) fseek(stream, 0L, SEEK_SET);
  11. clearerr(stream);
  12. }