minix/lib/libc/stdio/rewind.c

15 lines
222 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/*
* rewind.c - set the file position indicator of a stream to the start
*/
/* $Header$ */
#include <stdio.h>
#include "loc_incl.h"
void
rewind(FILE *stream)
{
(void) fseek(stream, 0L, SEEK_SET);
clearerr(stream);
}