clear
This commit is contained in:
		
							parent
							
								
									c189a2f6c0
								
							
						
					
					
						commit
						9ea3cb77e6
					
				@ -64,7 +64,7 @@ struct car* clear_train(struct car* first, const char* target) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    struct car* this = first;
 | 
					    struct car* this = first;
 | 
				
			||||||
    while(this->next->next != NULL){
 | 
					    while(this->next->next != NULL){
 | 
				
			||||||
        int x = strcmp(this->next->value, target);
 | 
					        int x = strcmp(this->value, target);
 | 
				
			||||||
        if(x == 0){ 
 | 
					        if(x == 0){ 
 | 
				
			||||||
            struct car* curr = first;
 | 
					            struct car* curr = first;
 | 
				
			||||||
            struct car* prev = NULL;
 | 
					            struct car* prev = NULL;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user