summaryrefslogtreecommitdiff
path: root/src/stdio/rewind.c
blob: 94694edbbd8237d5be3b77abd2de15e6bafc7220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

/** reset file position indicator **/

void rewind(FILE *stream)
{
	fseek(stream, 0L, SEEK_SET);
	clearerr(stream);
}

/***
sets the file position indicator of ARGUMENT(stream) to the
beginning of the file. The error indicator will be cleared.
***/

/*
STDC(1)
*/