home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / tcpipsrc / h / cmdparse < prev    next >
Text File  |  1994-07-08  |  589b  |  18 lines

  1. #include "Terminal.h"
  2.  
  3. #define NARG            64      /* Max number of args to commands */
  4.  
  5. struct cmds {
  6.         char *name;             /* Name of command */
  7.         int (*func)();          /* Function to execute command */
  8.         int  argcmin;           /* Minimum number of args */
  9.         char *argc_errmsg;      /* Message to print if insufficient args */
  10.         char *exec_errmsg;      /* Message to print if function fails */
  11. };
  12. #ifndef NULLCHAR
  13. #define NULLCHAR        (char *)0
  14. #endif
  15.  
  16. int cmdparse(struct cmds *, char *, Terminal *);
  17. int subcmd(struct cmds *, int, char **);
  18.