Subversion Repositories SvarDOS

Rev

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

Rev 382 Rev 387
Line 5... Line 5...
5
static int cmd_type(struct cmd_funcparam *p) {
5
static int cmd_type(struct cmd_funcparam *p) {
6
  char *buff = p->BUFFER;
6
  char *buff = p->BUFFER;
7
  const char *fname = p->argv[0];
7
  const char *fname = p->argv[0];
8
  unsigned short err = 0;
8
  unsigned short err = 0;
9
 
9
 
10
  if (p->argc == 0) {
10
  if (cmd_ishlp(p)) {
11
    outputnl("Required parameter missing");
-
 
12
    return(-1);
-
 
13
  }
-
 
14
 
-
 
15
  if ((p->argc > 0) && (imatch(p->argv[0], "/?"))) {
-
 
16
    outputnl("Displays the contents of a text file.");
11
    outputnl("Displays the contents of a text file.");
17
    outputnl("");
12
    outputnl("");
18
    outputnl("TYPE [drive:][path]filename");
13
    outputnl("TYPE [drive:][path]filename");
19
    return(-1);
14
    return(-1);
20
  }
15
  }
21
 
16
 
-
 
17
  if (p->argc == 0) {
-
 
18
    outputnl("Required parameter missing");
-
 
19
    return(-1);
-
 
20
  }
-
 
21
 
22
  if (p->argc > 1) {
22
  if (p->argc > 1) {
23
    outputnl("Too many parameters");
23
    outputnl("Too many parameters");
24
    return(-1);
24
    return(-1);
25
  }
25
  }
26
 
26