summaryrefslogtreecommitdiff
path: root/userspace
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-24 01:51:03 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-24 01:51:03 +0200
commitf5d8d7bee20742a7a101665ebca630ff8e05d77b (patch)
tree29e8e1106c4e587a9fb860836669e66725d68fc1 /userspace
parent98eb242e282650e9c6645dd2e5290e144b105bb4 (diff)
impronving io
Diffstat (limited to 'userspace')
-rw-r--r--userspace/snake.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/userspace/snake.c b/userspace/snake.c
index afc6bf8..aedf191 100644
--- a/userspace/snake.c
+++ b/userspace/snake.c
@@ -3,9 +3,11 @@
int main()
{
printf("Hello I am FoolSnake 0.1\n");
+ printf("setvbuf returned %i",setvbuf(stdin,NULL,_IONBF,0));
while(1)
{
- printf("%c",getc(stdin));
+ printf("%c",fgetc(stdin));
+
}
}