_beginthread((void (*) (void *))addem, 0, (void *)5);
/* set all uninitialized indices to an invalid transition */
for (cn=0; cn<NCHRS; ++cn)
for (ti2=0; ti2<nstates; ++ti2)
if (fsm[ti2][cn] == TINVALID)
fsm[ti2][cn] = ti;