typedef struct{ int e_type; double time; int nodo_id; } tevent; tevent *parseConfig(int id); int listLength(tevent *eventlist); double scheduler(int id, int n);