This commit is contained in:
Nataliia Kobryn 2025-12-01 12:36:25 +01:00
parent 37cad72b8c
commit aa132d9009

View File

@ -3,8 +3,8 @@
#include <string.h>
struct station* create_station(){
struct station* station = (struct station*)calloc(1,sizeof(struct station));
station->tracks = (struct car**)calloc(STATION_SIZE, sizeof(struct car*));
struct station* station = (struct station*)calloc(1,sizeof(struct station));//create station
station->tracks = (struct car**)calloc(STATION_SIZE, sizeof(struct car*));// create kolaje
station->track_count = STATION_SIZE;
return station;
}