]> git.xolatile.top Git - soikk-wordfinder.git/commitdiff
Update wordfinder.c
authorSoikk <76824648+Soikk@users.noreply.github.com>
Thu, 9 Sep 2021 10:47:06 +0000 (12:47 +0200)
committerSoikk <76824648+Soikk@users.noreply.github.com>
Thu, 9 Sep 2021 10:47:06 +0000 (12:47 +0200)
Forgot to fix one issue

wordfinder.c

index eb4c57ce4924e85c92cb631ef6ac53bd1d54fec6..946c9847f716625583a60d6f37318f348e3e02ec 100644 (file)
@@ -117,7 +117,8 @@ char **fileToLineArray(FILE *fp, int *fileLines){
 
 int main(int argc, char **argv){
        if(argc < 3){
-               return printf("Usage : wordfinder <document> <list>");
+               printf("Usage : wordfinder <document> <list>");
+               return 0;
        }
        char *docName = argv[1], *listName = argv[2];