summaryrefslogtreecommitdiff
path: root/src/stdio/feof.c
blob: 8e00489c58fc8c0d5cdf20738e8f6524c89220c5 (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
31
32
33
34
35
36
#if 0

#include <stdio.h>
#include "_assert.h"
#include "_stdio.h"

/** test for end-of-file **/

int feof(FILE *stream)
{
	ASSERT_NONNULL(stream);
	flockfile(stream);

	if (stream->eof) {
		return 1;
	}
	/* TODO */
	/* system level test */
	funlockfile(stream);
	/*
	RETURN(0, the end-of-file indicator is not set);
	RETURN(NONZERO, the end-of-file indicator is set);
	*/
	return stream->eof;
}

/***
tests for the end-of-file indicator of ARGUMENT(stream).
***/

/*
STDC(1)
*/


#endif