Subversion Repositories SvarDOS

Rev

Rev 369 | Go to most recent revision | Details | 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
 
8
static int cmd_exit(const struct cmd_funcparam *p) {
9
  if ((p->argc == 1) && (imatch(p->argv[0], "/?"))) {
10
    puts("EXIT");
11
    puts("");
12
    puts("Quits the COMMAND.COM program (command interpreter)");
13
    puts("");
14
  } else {
15
    exit(0);
16
  }
17
  return(-1);
18
}