Update cv6/a_station.c
This commit is contained in:
parent
4c1c1d4842
commit
c8aabc50d4
@ -1,3 +1,8 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include "a_station.h"
|
||||||
|
#include <stdlib.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));
|
||||||
station->tracks = (struct car**)calloc(STATION_SIZE, sizeof(struct car*));
|
station->tracks = (struct car**)calloc(STATION_SIZE, sizeof(struct car*));
|
||||||
|
Loading…
Reference in New Issue
Block a user