From 6a9d07cee3805af32c97c6c0c6814559a41b1cd0 Mon Sep 17 00:00:00 2001 From: vj586da Date: Fri, 5 Nov 2021 08:17:02 +0100 Subject: [PATCH] test --- cv4/a_train.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv4/a_train.c b/cv4/a_train.c index 175ce96..78af766 100755 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -23,7 +23,7 @@ struct car* add_car(struct car* first,const char* target) { void print_train(struct car* first) { struct car* this = first; while(this != NULL){ - printf("%s",this->value); + printf("%s->",this->value); this = this->next; } @@ -55,7 +55,7 @@ struct car* clear_train(struct car* first, const char* target) { if(strcmp(this->value, target) == 0){ //strcpy(this->value,this->next->value); //this->next=NULL; - strucat car* tmp = this->next; + struct car* tmp = this->next; free(this); //free(this->next); return tmp;