Subversion Repositories SvarDOS

Rev

Rev 376 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 376 Rev 387
Line 4... Line 4...
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 ((p->argc == 1) && (imatch(p->argv[0], "/?"))) {
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
  }