5
This commit is contained in:
parent
00ac4ffb5a
commit
30c39258d5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user