/* rewind.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */

#include <stdio.h>

void rewind (FILE *stream)
{
  fflush (stream);
  fseek (stream, 0L, SEEK_SET);
  stream->flags &= ~_IOERR;
}
