version 1.1, 1995/10/18 08:45:38 |
version 1.2, 1996/03/27 19:32:30 |
|
|
|
/* $OpenBSD$ */ |
|
|
/*- |
/*- |
* Copyright (c) 1980, 1993 |
* Copyright (c) 1980, 1993 |
* The Regents of the University of California. All rights reserved. |
* The Regents of the University of California. All rights reserved. |
|
|
|
|
#ifndef lint |
#ifndef lint |
static char sccsid[] = "from: @(#)cmd1.c 8.1 (Berkeley) 6/6/93"; |
static char sccsid[] = "from: @(#)cmd1.c 8.1 (Berkeley) 6/6/93"; |
static char rcsid[] = "$Id$"; |
static char rcsid[] = "$OpenBSD$"; |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include "rcv.h" |
#include "rcv.h" |
|
|
int |
int |
pcmdlist() |
pcmdlist() |
{ |
{ |
register struct cmd *cp; |
extern const struct cmd cmdtab[]; |
|
register const struct cmd *cp; |
register int cc; |
register int cc; |
extern struct cmd cmdtab[]; |
|
|
|
printf("Commands are:\n"); |
printf("Commands are:\n"); |
for (cc = 0, cp = cmdtab; cp->c_name != NULL; cp++) { |
for (cc = 0, cp = cmdtab; cp->c_name != NULL; cp++) { |