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

int fgetc(FILE *stream)
{
	int r;

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

	return r;
}