From The Compiler, 5 Years ago, written in C.
Embed
  1. tCmdLineEntry g_psCmdTable[] =
  2. {
  3.     {"help",     CMD_help,      " : Display list of commands" },
  4.     {"hib",      CMD_hib,       " : Place system into hibernate mode"},
  5.     {"rand",     CMD_rand,      " : Start automatic color sequencing"},
  6.     {"intensity",CMD_intensity, " : Adjust brightness 0 to 100 percent"},
  7.     {"rgb",      CMD_rgb,       " : Adjust color 000000-FFFFFF HTML notation"},
  8.     { 0, 0, 0 }
  9. };
  10.  
  11. int
  12. CMD_hib(int argc, char **argv)
  13. {
  14.     //
  15.     // Keep the compiler happy.
  16.     //
  17.     (void)argc;
  18.     (void)argv;
  19.  
  20.     //
  21.     // Enter hibernate state.
  22.     //
  23.     AppHibernateEnter();
  24.  
  25.     return (0);
  26. }