asd
This commit is contained in:
parent
37cad72b8c
commit
aa132d9009
@ -3,8 +3,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
struct station* create_station(){
|
struct station* create_station(){
|
||||||
struct station* station = (struct station*)calloc(1,sizeof(struct station));
|
struct station* station = (struct station*)calloc(1,sizeof(struct station));//create station
|
||||||
station->tracks = (struct car**)calloc(STATION_SIZE, sizeof(struct car*));
|
station->tracks = (struct car**)calloc(STATION_SIZE, sizeof(struct car*));// create kolaje
|
||||||
station->track_count = STATION_SIZE;
|
station->track_count = STATION_SIZE;
|
||||||
return station;
|
return station;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user