Subversion Repositories SvarDOS

Rev

Rev 369 | Rev 376 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
364 mateuszvis 1
/*
2
 * exit
3
 *
4
 * Quits the COMMAND.COM program (command interpreter)
5
 *
6
 */
7
 
372 mateuszvis 8
static int cmd_exit(struct cmd_funcparam *p) {
364 mateuszvis 9
  if ((p->argc == 1) && (imatch(p->argv[0], "/?"))) {
369 mateuszvis 10
    output("EXIT\r\n"
11
           "\r\n"
12
           "Quits the COMMAND.COM program (command interpreter)\r\n"
13
           "\r\n");
364 mateuszvis 14
  } else {
15
    exit(0);
16
  }
17
  return(-1);
18
}