This commit is contained in:
Maryna Kravtsova 2020-11-02 12:19:29 +01:00
parent 8afedc84ac
commit 0394b3b269

View File

@ -11,9 +11,6 @@ struct car* add_car(struct car* first,const char* target) {
if(first == NULL){
return newcar;
}
if(first->next == NULL){
first->next = newcar;
}
struct car *this = first;
while(this->next != NULL){
this = this->next;