musl/src/stdio/fgetc.c

13 lines
140 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include "stdio_impl.h"
int fgetc(FILE *f)
{
int c;
FLOCK(f);
c = getc_unlocked(f);
2011-02-12 00:22:29 -05:00
FUNLOCK(f);
return c;
}
weak_alias(fgetc, getc);