This commit is contained in:
Radovan Kofira 2020-11-10 20:18:51 +01:00
parent 55b04a94e7
commit 68af5bdecd

View File

@ -24,6 +24,18 @@ struct station* create_station(){
}*/
void destroy_station(struct station* station){
for(int i=0;i>station->track_count;i++){
struct car* prev = station->tracks[i];
while (prev!=NULL)
{
free(del);
}
}
free(station->tracks);
free(station);
}
}
int select_track(struct station* station, const char* target){