示例#1
0
int main(int argc, char *argv[]) {
   int status = install_custom_handler((int) &S_Handler);	//takes address our S_Handler.S function 
   if(status != 0){
      return status;
   }

   status = userSetup(argc, argv);
   
   return status;
}
示例#2
0
/* int main(int argc, char *argv[]) { */
int main(void) {

   unsigned short drive=8;
   char input;

   do {
      /* a little effect */
      scrollScreen();

      mainMenu();
      input=getchar();

      switch (input) {

         case '1':
                   scrollScreen();
                   drive=baseSetup();
                   break;

         case '2':
                   scrollScreen();
                   boardSetup(drive);
                   break;

         case '3':
                   scrollScreen();
                   networkSetup(drive);
                   break;
 
         case '4':
                   scrollScreen();
                   userSetup(drive);
                   break;
 
         default:
                   break;

      }
 
   } while (input != 'q');

   return 0;
}