home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / GETOPT.H < prev    next >
C/C++ Source or Header  |  1992-11-18  |  904b  |  34 lines

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