summaryrefslogtreecommitdiff
path: root/src/stdio/ftell.c
blob: 796a468c2ee7fbc2931daca170eb283118b23670 (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
#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)
*/