src/struct.c
//returns 0 if there are duplicate paths, otherwise 1
returns 0 if there are duplicate paths, otherwise 1
returns 0 if there are duplicate paths otherwise 1
int checkDuplicatePath(llist *lHead, const char *line){
    llist *app = lHead;
    while(lHead != NULL){
        if(strcmp(lHead->line, line) == 0) return 0; 
        lHead = lHead->next;
    }
    lHead = app;
    return 1; 
}
int checkDuplicatePath ( llist * lHead , const char * line ) { llist * app = lHead ; while ( lHead != NULL ) { if ( strcmp ( lHead -> line , line ) == 0 ) return 0 ; lHead = lHead -> next ; } lHead = app ; return 1 ; }
returns 0 if there are duplicate paths, otherwise 1
returns 0 if there are duplicate paths otherwise 1
//we found a duplicate //no duplicate