This commit is contained in:
Džubara 2024-10-24 19:10:30 +02:00
parent 00ac4ffb5a
commit 30c39258d5

View File

@ -32,6 +32,16 @@ struct car* add_car(struct car* first, const char* target) {
} }
void print_train(struct car* first) { void print_train(struct car* first) {
if (first == NULL) {
printf("Vlak je prazdny.\n");
return;
}
struct car* temp = first;
while (temp != NULL) {
printf("Cielova stanica: %s\n", temp->value);
temp = temp->next;
}
} }
void cancel_train(struct car* first) { void cancel_train(struct car* first) {