add
This commit is contained in:
parent
3898228630
commit
8954780055
@ -41,9 +41,9 @@ void print_train(struct car* first) {
|
|||||||
|
|
||||||
void cancel_train(struct car* first) {
|
void cancel_train(struct car* first) {
|
||||||
if(first == NULL){
|
if(first == NULL){
|
||||||
exit(0);
|
return;
|
||||||
}
|
}
|
||||||
else if(first->next == NULL){
|
if(first->next == NULL){
|
||||||
free(first);
|
free(first);
|
||||||
//first = NULL;
|
//first = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user