Initial revision
This commit is contained in:
14
lib/stdio/rewind.c
Executable file
14
lib/stdio/rewind.c
Executable file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user