Subversion Repositories SvarDOS

Rev

Rev 387 | Rev 421 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 387 Rev 397
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(struct cmd_funcparam *p) {
8
static int cmd_exit(struct cmd_funcparam *p) {
9
  if (cmd_ishlp(p)) {
9
  if (cmd_ishlp(p)) {
10
    outputnl("EXIT\r\n");
10
    outputnl("EXIT\r\n");
11
    outputnl("Quits the COMMAND.COM program (command interpreter)");
11
    outputnl("Quits the COMMAND.COM program (command interpreter)");
12
  } else {
12
  } else {
13
    exit(0);
13
    exit(0);
14
  }
14
  }
15
  return(-1);
15
  return(-1);
16
}
16
}
17
 
17