home *** CD-ROM | disk | FTP | other *** search
/ Dr. CD ROM (Annual Premium Edition) / premium.zip / premium / IBMOS2_1 / SC621.ZIP / sc621 / getopt.h < prev    next >
C/C++ Source or Header  |  1992-05-10  |  817b  |  26 lines

  1. /* getopt (emx/gcc) */
  2.  
  3. #if !defined (_GETOPT_H)
  4. #define _GETOPT_H
  5.  
  6. #if !defined (_GETOPT_C)
  7.  
  8. extern char *optarg;       /* argument of current option                    */
  9. extern int optind;         /* index of next argument; default=0: initialize */
  10. extern int opterr;         /* 0=disable error messages; default=1: enable   */
  11. extern char *optswchar;    /* characters introducing options; default="-"   */
  12.  
  13. #endif
  14.  
  15. extern enum _optmode
  16.     {
  17.     GETOPT_UNIX,           /* options at start of argument list (default)   */
  18.     GETOPT_ANY,            /* move non-options to the end                   */
  19.     GETOPT_KEEP,           /* return options in order                       */
  20.     } optmode;
  21.  
  22.  
  23. int getopt (int argc, char **argv, const char *opt_str);
  24.  
  25. #endif /* !defined (_GETOPT_H) */
  26.