aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/getchar.c')
-rw-r--r--src/stdio/getchar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdio/getchar.c b/src/stdio/getchar.c
new file mode 100644
index 0000000..c101265
--- /dev/null
+++ b/src/stdio/getchar.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int getchar(void)
+{
+ return fgetc(stdin);
+}