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{
|
||||
struct car* this = first;
|
||||
while(this != NULL){
|
||||
while(this != NULL){
|
||||
//while(this != NULL){
|
||||
int x = strcmp(this->value, target);
|
||||
if(x == 0){
|
||||
first = this->next;
|
||||
@ -92,7 +92,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
return first;
|
||||
}
|
||||
this = this->next;
|
||||
}
|
||||
//}
|
||||
/*int x = strcmp(this->value, target);
|
||||
if(x == 0){
|
||||
struct car* curr = first;
|
||||
|
Loading…
Reference in New Issue
Block a user