Lines Matching refs:getopt
1 /* Declarations for getopt.
25 /* For communication from `getopt' to the caller.
26 When `getopt' finds an option that takes an argument,
35 and for communication between successive calls to `getopt'.
37 On entry to `getopt', zero means this is the first call; initialize.
39 When `getopt' returns -1, this is the index of the first of the
47 /* Callers store zero here to inhibit the error message `getopt' prints
74 one). For long options that have a zero `flag' field, `getopt'
99 /* SunOS4 declares getopt with the following prototype:
100 extern int getopt (int argc, const char *const *argv, const char *shortopts);
102 #define getopt(x,y,z) getopt_long(x, y, z, (const struct option *) 0, (int *) 0)
105 /* Many other libraries have conflicting prototypes for getopt, with
107 errors, only prototype getopt for the GNU C library. */
108 extern int getopt (int argc, char *const *argv, const char *shortopts);
110 extern int getopt ();
125 extern int getopt ();
136 #endif /* getopt.h */