home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / netlite / NET / h / CMDPARSE < prev    next >
Text File  |  1992-02-14  |  554b  |  16 lines

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