home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNPD9404.ZIP / GETOPTS.H < prev    next >
C/C++ Source or Header  |  1994-04-03  |  636b  |  32 lines

  1. /*
  2. **  GETOPTS.H
  3. **
  4. **  public domain by Bob Stout
  5. */
  6.  
  7. #undef ERROR
  8. #undef FALSE
  9. #undef TRUE
  10.  
  11. typedef enum {ERROR = -1,FALSE, TRUE} Boolean_T;
  12.  
  13. typedef enum {
  14.       Boolean_Tag,
  15.       Word_Tag,
  16.       DWord_Tag,
  17.       Double_Tag,
  18.       String_Tag
  19.       } TAG_TYPE;
  20.  
  21. struct Option_Tag {
  22.       int         letter;                 /* Option switch        */
  23.       TAG_TYPE    type;                   /* Type of option       */
  24.       void       *buf;                    /* Storage location     */
  25. };
  26.  
  27. extern struct Option_Tag options[];
  28. extern int    xargc;
  29. extern char  *xargv[];
  30.  
  31. int getopts(int, char *[]);
  32.