/* This is the declaration portion of the data structure used to temporarily store the data obtained from thr_scan. The structure consists of four linked lists (one corresponding to each spigot (A-D)). The spigot array is simply the four pointers to the the linked lists. */ #define NUM_CHANNELS 64 struct data { float Vth; int num_trials; unsigned short num_hits[NUM_CHANNELS]; struct data *next; }; struct data *spigot[4];