summaryrefslogtreecommitdiff
path: root/src/stdio/fsetpos.c
blob: f4aaf71ccd80659f1410ed84124c3ee3563945b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <stdio.h>
#include "_stdio.h"

/** set the file position indicator **/

int fsetpos(FILE *stream, const fpos_t *pos)
{
	SIGNAL_SAFE(0);
	ASSERT_STREAM(stream, 0, 0);
	ASSERT_FPOS(stream, pos);
	ASSERT_NOOVERLAP(stream, sizeof(*stream), pos, sizeof(*pos));

	(void)stream; (void)pos;
	/* TODO */
	stream->operation = OP_NONE;
	return 1;
}

/***
sets the file position indicator of ARGUMENT(stream) to
ARGUMENT(pos), which must have been previously obtained by a call to
FUNCTION(fgetpos).

A successful call to THIS() clears the end-of-file indicator and discards
any characters pushed back with FUNCTION(ungetc).
***/

/*
STDC(1)
*/