#include "hddm_simple.h" int main(int argc, char **argv) { int count = 0; float value; simple_HDDM_t *thisInputEvent = 0; simple_iostream_t *thisInputFile = 0; if (! (thisInputFile = open_simple_HDDM("simpleOutput.hddm"))) { printf("Error - could not open input file\n"); exit(1); } while (thisInputEvent = read_simple_HDDM(thisInputFile)) { count++; printf("count = %d\n", count); value = thisInputEvent->toplevels->in[0].value; printf("value = %f\n", value); flush_simple_HDDM(thisInputEvent,0); } close_simple_HDDM(thisInputFile); return 0; }