Initializacia
This commit is contained in:
parent
2e25765e5d
commit
9cd93271e1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user