summaryrefslogtreecommitdiff
path: root/src/stdio/ftell.c
blob: f1fab68aa4929022b90142f11353c46c06a10652 (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
#include <stdio.h>

/** get the file position indicator **/

long int ftell(FILE *stream)
{
	(void)stream;
	/* TODO */
	/*
	RETURN_SUCCESS(the current file position);
	RETURN_FAILURE(LITERAL(-1L));
	*/
	return -1L;
}

/***
obtains the current value of the file position indicitor of ARGUMENT(stream).

For binary streams, the indicator is the current byte position.
***/

/*
UNSPECIFIED(The meaning of the file position indicator for text streams)
STDC(1)
*/