small update for c program ex1
authorMart Lubbers <mart@martlubbers.net>
Sun, 1 Feb 2015 22:11:11 +0000 (23:11 +0100)
committerMart Lubbers <mart@martlubbers.net>
Sun, 1 Feb 2015 22:11:11 +0000 (23:11 +0100)
ass1/mart/sws1-s4109503-s4202015.tar.gz [deleted file]
ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome [new file with mode: 0755]
ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome.c

diff --git a/ass1/mart/sws1-s4109503-s4202015.tar.gz b/ass1/mart/sws1-s4109503-s4202015.tar.gz
deleted file mode 100644 (file)
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 (executable)
index 0000000..87b531b
Binary files /dev/null and b/ass1/mart/sws1-s4109503-s4202015/exercise2/parsegenome differ
index 2572cbe..35beda0 100644 (file)
@@ -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...");