home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 1 / GoldFishApril1994_CD1.img / d1xx / d160 / calls / getopt.h < prev    next >
C/C++ Source or Header  |  1988-10-02  |  407b  |  16 lines

  1. /*
  2.  * get option letter from argument vector
  3.  */
  4. extern int
  5.     optind,            /* index into parent argv vector */
  6.     optopt;            /* character checked for validity */
  7. extern char
  8.     *optarg;        /* argument associated with option */
  9.  
  10. #define BADCH    ((int)'?')
  11. #define EMSG    ""
  12. #define tell(s)    {fputs(*nargv,stderr);fputs((s),stderr); \
  13.         fputc(optopt,stderr);fputc('\n',stderr);return(BADCH);}
  14.  
  15. extern int getopt(), getarg();
  16.