15 lines
239 B
C
15 lines
239 B
C
#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);
|
|
}
|