clear
This commit is contained in:
parent
3917d656f3
commit
535859a615
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user