aboutsummaryrefslogtreecommitdiffstats
path: root/io/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/getchar.c')
-rw-r--r--io/getchar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io/getchar.c b/io/getchar.c
new file mode 100644
index 0000000..57d26c4
--- /dev/null
+++ b/io/getchar.c
@@ -0,0 +1,3 @@
+#include "io.h"
+
+int getchar(void) { return _fgetc_wrap(_stdstream_wrap(stream_input)); }