Subversion Repositories SvarDOS

Rev

Rev 372 | Rev 387 | 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], "/?"))) {
376 mateuszvis 10
    outputnl("EXIT\r\n");
11
    outputnl("Quits the COMMAND.COM program (command interpreter)");
364 mateuszvis 12
  } else {
13
    exit(0);
14
  }
15
  return(-1);
16
}