This commit is contained in:
Radovan Kofira 2020-11-05 19:35:57 +01:00
parent d054eb393f
commit 26fb4270d0

View File

@ -17,9 +17,9 @@ struct car* add_car(struct car* first,const char* target) {
struct car* temp=first; struct car* temp=first;
int length=0; int length=0;
while(temp!=NULL){ while(temp!=NULL){
if(temp->next!=NULL)
temp=temp->next; temp=temp->next;
length++; length++;
printf("%d",length);
} }
strcpy(newcar->value, target); strcpy(newcar->value, target);