int CmdQuit(const char *Cmd)
{
exit(0);
- return 0;
+ return 99;
}
int CmdRev(const char *Cmd)
// Entry point into our code: called whenever the user types a command and
// then presses Enter, which the full command line that they typed.
//-----------------------------------------------------------------------------
-void CommandReceived(char *Cmd) {
- CmdsParse(CommandTable, Cmd);
+int CommandReceived(char *Cmd) {
+ return CmdsParse(CommandTable, Cmd);
}
//-----------------------------------------------------------------------------
return;
} break;
- default:
- storeCommand(UC);
+ default: {
+ storeCommand(UC);
break;
+ }
}
}