home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / UUCPbb_2_1_src.lzh / UUCPBB21 / getopt.h < prev    next >
Text File  |  1993-11-20  |  1KB  |  30 lines

  1. /*
  2.      From: The C Users Journal - June 1991 p.75-87   New GETOPT(3)
  3. */
  4.  
  5. #ifndef getopt_h_DEFINED
  6. #define getopt_h_DEFINED
  7.  
  8.  
  9. /*************************************************************************
  10.      This INCLUDE file contains the external definitions for the GETOPT(3)
  11.      function and its global variables.
  12. *************************************************************************/
  13.  
  14.  
  15. extern  int  getopt();              /* Function to get command line options */
  16.  
  17. extern  char *optarg;               /* Set by GETOPT for options expecting 
  18.                                            arguments */
  19. extern  int  optind;                /* Set by GETOPT; index of next ARGV to
  20.                                            be processed. */
  21. extern  int  opterr;                /* Disable (== 0) or enable (!= 0) error
  22.                                           messages written to standard error */
  23.  
  24. #define NONOPT  (-1)                /* Non-option - returned by GETOPT when
  25.                                         it encounters a non-option argument. */
  26.  
  27. #endif /* getopt_h_DEFINED */
  28.  
  29. /* End of File */
  30.