Lanner LEC-2250 Manual de usuario Pagina 28

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 30
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 27
27
Programming Watchdog Timer
Embedded and Industrial Computing
Appendix A
try
{
// The total argument allowed
int num = sizeof (c2f) / sizeof (c2f[0]) ;
// Too few argument
if (argc < 2)
RETMSG (-1, PARAMETER_HELP)
;
// Find the match argument and execute
the mapping function
for (int i = 0 ; i < num ; i++)
if (stricmp (argv[1], c2f[i].szCmd)
== 0)
return c2f[i].function
(argc, argv) ;
// No match argument
RETMSG (-1, Wrong Argument\n”) ;
}
catch (char *str)
{
// Output the error message
printf (“\n%s\n, str) ;
}
catch (...)
{
// Unknown exception
printf (“\nUnknown Exception\n”) ;
}
return -1 ;
}
Vista de pagina 27
1 2 ... 23 24 25 26 27 28 29 30

Comentarios a estos manuales

Sin comentarios