home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / CMDPARSE.ZIP / CMDPARSE.H < prev    next >
Text File  |  1989-12-02  |  867b  |  33 lines

  1. /*  CMDPARSE.H  
  2.        Header file to use in program code when using CMDPARSE.OBJ
  3.  
  4. */
  5.  
  6. /* ********************** Prototypes ********************** */
  7.  
  8. int cmd_init(void);               /* Call first before any others */
  9.  
  10. char *get_param(int pnum);
  11. int if_option(char *tst_str);
  12. int if_optioni(char *tst_str);
  13. char *opt_value(char *tst_str);
  14. char *opt_valuei(char *tst_str);
  15.  
  16.  
  17. /* ********************** Global Variables ********************** */
  18.  
  19. /* cmd_arg[] is an array of pointers to the pieces of the command.  It
  20.    is accessible from the program using this extern.
  21. */
  22.  
  23. extern char *cmd_arg[22];
  24.  
  25. /* arg_type[] is an array of flags indicating the type of each of the
  26.    arguments.  It is accessible from the program using this extern.  The
  27.    flags are 0=parameter 1=option.
  28. */
  29.  
  30. extern int arg_type[22];
  31.  
  32. /* End of CMDPARSE.H */
  33.