src/struct.c
//discards the duplicate in the list of file
discards the duplicate in the list of file
discards the duplicate in the list of file
int checkDuplicateFile(fList *listHead, const char *line){
    fList *app = listHead;
    while(listHead != NULL){
        if(strcmp(listHead->path, line) == 0) return 0; 
        listHead = listHead->next;
    }
    listHead = app;
    return 1; 
}
int checkDuplicateFile ( fList * listHead , const char * line ) { fList * app = listHead ; while ( listHead != NULL ) { if ( strcmp ( listHead -> path , line ) == 0 ) return 0 ; listHead = listHead -> next ; } listHead = app ; return 1 ; }
discards the duplicate in the list of file
discards the duplicate in the list of file
//we found a duplicate //no duplicate