Subversion Repositories SvarDOS

Rev

Rev 369 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

/*
 * exit
 *
 * Quits the COMMAND.COM program (command interpreter)
 *
 */

static int cmd_exit(struct cmd_funcparam *p) {
  if ((p->argc == 1) && (imatch(p->argv[0], "/?"))) {
    output("EXIT\r\n"
           "\r\n"
           "Quits the COMMAND.COM program (command interpreter)\r\n"
           "\r\n");
  } else {
    exit(0);
  }
  return(-1);
}