home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
internet
/
tcpipsrc
/
h
/
cmdparse
< prev
next >
Wrap
Text File
|
1994-07-08
|
589b
|
18 lines
#include "Terminal.h"
#define NARG 64 /* Max number of args to commands */
struct cmds {
char *name; /* Name of command */
int (*func)(); /* Function to execute command */
int argcmin; /* Minimum number of args */
char *argc_errmsg; /* Message to print if insufficient args */
char *exec_errmsg; /* Message to print if function fails */
};
#ifndef NULLCHAR
#define NULLCHAR (char *)0
#endif
int cmdparse(struct cmds *, char *, Terminal *);
int subcmd(struct cmds *, int, char **);