source:
EcnlProtoTool/trunk/musl-1.1.18/src/stdio/getc.c@
444
Last change on this file since 444 was 444, checked in by , 4 years ago | |
---|---|
|
|
File size: 199 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | #include "stdio_impl.h" |
2 | ||
3 | int getc(FILE *f) | |
4 | { | |
5 | int c; | |
6 | if (f->lock < 0 || !__lockfile(f)) | |
7 | return getc_unlocked(f); | |
8 | c = getc_unlocked(f); | |
9 | __unlockfile(f); | |
10 | return c; | |
11 | } | |
12 | ||
13 | weak_alias(getc, _IO_getc); |
Note:
See TracBrowser
for help on using the repository browser.