home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 182.lha / Calls / getopt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-04-28  |  407 b   |  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.