add
This commit is contained in:
parent
8afedc84ac
commit
0394b3b269
@ -11,9 +11,6 @@ struct car* add_car(struct car* first,const char* target) {
|
|||||||
if(first == NULL){
|
if(first == NULL){
|
||||||
return newcar;
|
return newcar;
|
||||||
}
|
}
|
||||||
if(first->next == NULL){
|
|
||||||
first->next = newcar;
|
|
||||||
}
|
|
||||||
struct car *this = first;
|
struct car *this = first;
|
||||||
while(this->next != NULL){
|
while(this->next != NULL){
|
||||||
this = this->next;
|
this = this->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user