Initializacia

This commit is contained in:
Kozar 2024-10-20 12:59:11 +00:00
parent 2e25765e5d
commit 9cd93271e1

View File

@ -23,13 +23,13 @@ struct car* add_car(struct car* first, const char* target) {
}
void print_train(struct car* first) {
// if(first != NULL){
// struct car* current = first;
// while(current->next != NULL){
// printf("%s\n", current->value);
// current = current->next;
// }
// }
if(first != NULL){
struct car* current = first;
while(current->next != NULL){
printf("%s\n", current->value);
current = current->next;
}
}
}
void cancel_train(struct car* first) {