home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_06 / 9n06086a < prev    next >
Text File  |  1990-02-15  |  983b  |  24 lines

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