src/struct.c
//returns 0 if there are duplicate words, otherwise 1
returns 0 if there are duplicate words, otherwise 1
returns 0 if there are duplicate words otherwise 1
int checkDuplicateWord(fWord *wordHead, const char *line){
    fWord *app = wordHead;
    while(wordHead != NULL){
        if(strcmp(wordHead->word, line) == 0) return 0;
        wordHead = wordHead->next;
    }
    wordHead = app;
    return 1;
}
int checkDuplicateWord ( fWord * wordHead , const char * line ) { fWord * app = wordHead ; while ( wordHead != NULL ) { if ( strcmp ( wordHead -> word , line ) == 0 ) return 0 ; wordHead = wordHead -> next ; } wordHead = app ; return 1 ; }
returns 0 if there are duplicate words, otherwise 1
returns 0 if there are duplicate words otherwise 1