#include "hddm_simple.h" int main() { simple_HDDM_t* hddm; simple_iostream_t* os; simple_Toplevels_t* tls; simple_Midlevels_t* mls; simple_Bottomlevels_t* bls; int status; string_t mystring0; string_t mystring1; string_t mystring2; mystring0 = malloc(32); mystring1 = malloc(32); mystring2 = malloc(32); strcpy(mystring0, "hey there"); strcpy(mystring1, "you crazy"); strcpy(mystring2, "code meisters"); os = init_simple_HDDM("simpleOutput.hddm"); hddm = make_simple_HDDM(); tls = make_simple_Toplevels(1); tls->mult = 1; tls->in[0].value = 1.234; hddm->toplevels = tls; mls = make_simple_Midlevels(10); tls->in[0].midlevels = mls; mls->mult = 2; bls = make_simple_Bottomlevels(10); bls->mult = 3; bls->in[0].label = mystring0; bls->in[1].label = mystring1; bls->in[2].label = mystring2; mls->in[1].bottomlevels = bls; flush_simple_HDDM(hddm, os); hddm = make_simple_HDDM(); tls = make_simple_Toplevels(1); tls->mult = 1; tls->in[0].value = 5.678; hddm->toplevels = tls; flush_simple_HDDM(hddm, os); return 0; }