From e2a8a663bffae5df7bf31c9eea5a097419a24154 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 15 Jan 2016 17:28:59 -0500 Subject: Fixed input --- build/GNULinux/cook | Bin 11168 -> 11368 bytes source/bfcompiler.c | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build/GNULinux/cook b/build/GNULinux/cook index 3e4de3e..bfa2ab3 100755 Binary files a/build/GNULinux/cook and b/build/GNULinux/cook differ diff --git a/source/bfcompiler.c b/source/bfcompiler.c index 9325faf..3fdb9ac 100644 --- a/source/bfcompiler.c +++ b/source/bfcompiler.c @@ -98,7 +98,7 @@ void compilebf(char* bf) int i; int ptr; List* l; - + char c; size = strlen(bf); ptr = START_SIZE / 2; @@ -127,6 +127,9 @@ void compilebf(char* bf) case '.': putchar(l->array[ptr]); break; + case ',': + scanf("%c", &c); + l->array[ptr] = c; case '[': if (!l->array[ptr]) i = right_matching(bf, i); -- cgit v1.2.3