initial check-in, version 0.5.0
[musl] / src / stdio / fgetc.c
1 #include "stdio_impl.h"
2
3 int fgetc(FILE *f)
4 {
5         int c;
6         FLOCK(f);
7         c = f->rpos < f->rstop ? *f->rpos++ : __uflow(f);
8         FUNLOCK(f);
9         return c;
10 }