Multithreaded-software/coordination_libraries/lcsm/lcsm_new.c
void init_lcsm(struct LCSM* sm)
{
    sm->state = creation;
    for (int i = 0; i<MAX_EVENT_QUEUE; i++)
    {
        sm->event_queue[i] = empty;
    }
    sm->no_events = 0;
}
//could be replaced with constructure or default initialization above in C++
could be replaced with constructure or default initialization above in C
could be replaced with constructure or default initialization above in C
void init_lcsm(struct LCSM* sm)
{
    sm->state = creation;
    for (int i = 0; i<MAX_EVENT_QUEUE; i++)
    {
        sm->event_queue[i] = empty;
    }
    sm->no_events = 0;
}
void init_lcsm ( struct LCSM * sm ) { sm -> state = creation ; for ( int i = 0 ; i < MAX_EVENT_QUEUE ; i ++ ) { sm -> event_queue [ i ] = empty ; } sm -> no_events = 0 ; }
could be replaced with constructure or default initialization above in C++
could be replaced with constructure or default initialization above in C ++