First/simdata.c

15 lines
239 B
C
Raw Normal View History

#include <stdlib.h>
#include "simdata.h"
struct simdata_t *init_simdata(){
struct simdata_t * ret=malloc(sizeof(struct simdata_t));
if(ret){
ret->current_clock=0;
}
return ret;
}
void free_simdata(struct simdata_t *p){
free(p);
}