This repository has been archived on 2017-07-22. You can view files and clone it, but cannot push or open issues/pull-requests.
jlsampler/main.c

19 lines
366 B
C

#include <stdio.h>
#include <stdlib.h>
#include "jl_mem.h"
#include "sampler.h"
#include "init.h"
Sampler *sampler;
int main(int argc, char **argv) {
if(argc != 2) {
printf("Please provide a configuration file.\n");
exit(1);
}
sampler = jl_malloc_exit(sizeof(Sampler));
sampler_init(sampler, argv[1]);
sampler_main(sampler);
}