summaryrefslogtreecommitdiff
path: root/src/stdio/fgetc.c
blob: da6386842f99fc869d244f3c0b9e71c3465910ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "stdio_impl.h"

int fgetc(FILE *f)
{
	int c;
	FLOCK(f);
	c = getc_unlocked(f);
	FUNLOCK(f);
	return c;
}

weak_alias(fgetc, getc);