This commit is contained in:
Maryna Kravtsova 2020-11-03 21:20:50 +01:00
parent e943365759
commit 2716eb2775

View File

@ -59,7 +59,7 @@ struct car* clear_train(struct car* first, const char* target) {
return 0; return 0;
} }
} }
struct car* this = first; //struct car* this = first;
/*if(first->next->next == NULL){ /*if(first->next->next == NULL){
int x = strcmp(this->next->value, target); int x = strcmp(this->next->value, target);
if(x == 0){ if(x == 0){
@ -79,6 +79,7 @@ struct car* clear_train(struct car* first, const char* target) {
} */ } */
else{ else{
struct car* this = first;
while(this != NULL){ while(this != NULL){
while(this != NULL){ while(this != NULL){
int x =strcmp(this->value, target); int x =strcmp(this->value, target);