summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/feof.c
blob: 235c4931b6c685402e49772dc335ca83bd75b5d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int feof(FILE *stream)
{
	int r;

	flockfile(stream);
	r = feof_unlocked(stream);
	funlockfile(stream);

	return r;
}