source:
azure_iot_hub_mbedtls/trunk/musl-1.1.18/src/stdio/fgetc.c@
413
Last change on this file since 413 was 398, checked in by , 5 years ago | |
---|---|
|
|
File size: 171 bytes |
Rev | Line | |
---|---|---|
[398] | 1 | #include "stdio_impl.h" |
2 | ||
3 | int fgetc(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 | } |
Note:
See TracBrowser
for help on using the repository browser.