diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-24 01:51:03 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-24 01:51:03 +0200 |
| commit | f5d8d7bee20742a7a101665ebca630ff8e05d77b (patch) | |
| tree | 29e8e1106c4e587a9fb860836669e66725d68fc1 /userspace | |
| parent | 98eb242e282650e9c6645dd2e5290e144b105bb4 (diff) | |
impronving io
Diffstat (limited to 'userspace')
| -rw-r--r-- | userspace/snake.c | 4 |
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)); + } } |
