Sign in
fuchsia
/
fuchsia
/
83854f31e881f0f9aa2bd848a84a94e01fb09dd9
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
stdio
/
getc.c
blob: 1c9523c68da6fb15fd2c25ee775ac1bc1d76d9ed [
file
] [
log
] [
blame
]
#include
"stdio_impl.h"
int
getc
(
FILE
*
f
)
{
int
c
;
if
(
atomic_load
(&
f
->
lock
)
<
0
||
!
__lockfile
(
f
))
return
getc_unlocked
(
f
);
c
=
getc_unlocked
(
f
);
__unlockfile
(
f
);
return
c
;
}
weak_alias
(
getc
,
_IO_getc
);