Subversion Repositories SvarDOS

Rev

Rev 369 | Rev 376 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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