/*----------------------------------------------------------------------------*/

/* Compile with
 *   gcc -o menu1 -O `pmc_options` menu1.c -lpmc
 *
 * Try this example:
 *   menu1
 */

/*----------------------------------------------------------------------------*/

#include <pmc_lib.h>

/*----------------------------------------------------------------------------*/

int main(int argc, char * argv[])
{
  pmc_control_t Ctl = pmc_control_null;

  pmc_control_print(stdout, "initialized by pmc_control_null", &Ctl);

  exit(0);
}

/*----------------------------------------------------------------------------*/

/* Alternative form */

#if 0
pmc_control_t Ctl;		/* cannot initialize here */

int main(int argc, char * argv[])
{
  Ctl = pmc_control_null;	/* should initialize here */

  pmc_control_print(stdout, "initialized by pmc_control_null", &Ctl);

  exit(0);
}
#endif

/*----------------------------------------------------------------------------*/
