This commit is contained in:
Maryna Kravtsova 2020-11-03 21:36:56 +01:00
parent 3917d656f3
commit 535859a615

View File

@ -81,7 +81,7 @@ struct car* clear_train(struct car* first, const char* target) {
else{ else{
struct car* this = first; 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);
if(x == 0){ if(x == 0){
first = this->next; first = this->next;
@ -92,7 +92,7 @@ struct car* clear_train(struct car* first, const char* target) {
return first; return first;
} }
this = this->next; this = this->next;
} //}
/*int x = strcmp(this->value, target); /*int x = strcmp(this->value, target);
if(x == 0){ if(x == 0){
struct car* curr = first; struct car* curr = first;