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

/** reset file position indicator **/

void rewind(FILE *stream)
{
	SIGNAL_SAFE(0);
	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)
*/