From: Mart Lubbers Date: Sun, 1 Feb 2015 22:11:11 +0000 (+0100) Subject: small update for c program ex1 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=ec2f38bea880e7be06288f310a1efb674784c264;p=sws1-1415.git small update for c program ex1 --- diff --git a/ass1/mart/sws1-s4109503-s4202015.tar.gz b/ass1/mart/sws1-s4109503-s4202015.tar.gz deleted file mode 100644 index 02e5755..0000000 Binary files a/ass1/mart/sws1-s4109503-s4202015.tar.gz and /dev/null differ diff --git a/ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome b/ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome new file mode 100755 index 0000000..87b531b Binary files /dev/null and b/ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome differ diff --git a/ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome.c b/ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome.c index 2572cbe..35beda0 100644 --- a/ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome.c +++ b/ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome.c @@ -9,13 +9,12 @@ int main(int argc, char* argv[]) return 2; } - FILE *f; int c = 0; int charsperline = 0; int numlines = 0; int occs[4] = {0, 0, 0, 0}; - f = fopen(argv[1], "r"); + FILE *f = fopen(argv[1], "r"); if(f == NULL) { printf("Unable to open file...");