commit | 0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sat Feb 12 00:22:29 2011 -0500 |
committer | Rich Felker <dalias@aerifal.cx> | Sat Feb 12 00:22:29 2011 -0500 |
tree | 6eaef0d8a720fa3da580de87b647fff796fe80b3 |
initial check-in, version 0.5.0
diff --git a/src/stdio/getchar_unlocked.c b/src/stdio/getchar_unlocked.c new file mode 100644 index 0000000..299cb95 --- /dev/null +++ b/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); +}