mirror of
https://github.com/fluencelabs/musl
synced 2025-06-07 12:01:35 +00:00
11 lines
142 B
C
11 lines
142 B
C
|
#include "stdio_impl.h"
|
||
|
|
||
|
int fgetc(FILE *f)
|
||
|
{
|
||
|
int c;
|
||
|
FLOCK(f);
|
||
|
c = f->rpos < f->rstop ? *f->rpos++ : __uflow(f);
|
||
|
FUNLOCK(f);
|
||
|
return c;
|
||
|
}
|