This commit is contained in:
Maryna Kravtsova 2020-11-02 12:21:37 +01:00
parent 0394b3b269
commit 3a019b60f2

View File

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