src/sim/sim_dmc.c
int sim_dmc_state(sim_dmc_t * dmc, ffs_t * ffs, sim_state_enum_t action,
		  const char * stub) {

  int ifail = 0;

  switch (action) {
  case SIM_STATE_INIT:
    /* Not required, or recover initial state */
    break;
  case SIM_STATE_READ:
    ifail = dmc_read_state(&dyn, stub, &dyn.state);
    break;
  case SIM_STATE_WRITE:
    ifail = dmc_write_state(&dyn, stub, &dyn.state);
    break;
  case SIM_STATE_DELETE:
    remove(stub);
    break;
  default:
    ifail = -1;
  }

  return ifail;
}
/*****************************************************************************
 *
 *  sim_dmc_state
 *
 *  For the filename, we just use the unique stub without adornment.
 *
 *****************************************************************************/
sim_dmc_state
For the filename, we just use the unique stub without adornment.
sim_dmc_state For the filename we just use the unique stub without adornment .
int sim_dmc_state(sim_dmc_t * dmc, ffs_t * ffs, sim_state_enum_t action,
		  const char * stub) {
  int ifail = 0;
  switch (action) {
  case SIM_STATE_INIT:
    break;
  case SIM_STATE_READ:
    ifail = dmc_read_state(&dyn, stub, &dyn.state);
    break;
  case SIM_STATE_WRITE:
    ifail = dmc_write_state(&dyn, stub, &dyn.state);
    break;
  case SIM_STATE_DELETE:
    remove(stub);
    break;
  default:
    ifail = -1;
  }
  return ifail;
}
int sim_dmc_state ( sim_dmc_t * dmc , ffs_t * ffs , sim_state_enum_t action , const char * stub ) { int ifail = 0 ; switch ( action ) { case SIM_STATE_INIT : break ; case SIM_STATE_READ : ifail = dmc_read_state ( & dyn , stub , & dyn . state ) ; break ; case SIM_STATE_WRITE : ifail = dmc_write_state ( & dyn , stub , & dyn . state ) ; break ; case SIM_STATE_DELETE : remove ( stub ) ; break ; default : ifail = -1 ; } return ifail ; }
sim_dmc_state
  For the filename, we just use the unique stub without adornment.
sim_dmc_state For the filename we just use the unique stub without adornment .
/* Not required, or recover initial state */