diff options
Diffstat (limited to '05/musl-0.6.0/src/stdio/getchar_unlocked.c')
-rw-r--r-- | 05/musl-0.6.0/src/stdio/getchar_unlocked.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/05/musl-0.6.0/src/stdio/getchar_unlocked.c b/05/musl-0.6.0/src/stdio/getchar_unlocked.c new file mode 100644 index 0000000..299cb95 --- /dev/null +++ b/05/musl-0.6.0/src/stdio/getchar_unlocked.c @@ -0,0 +1,6 @@ +#include "stdio_impl.h" + +int getchar_unlocked(void) +{ + return stdin->rpos < stdin->rstop ? *stdin->rpos++ : __uflow(stdin); +} |