github.com/gotranspile/cxgo@v0.3.8-0.20240118201721-29871598a6a2/libs/includes/getopt.h (about)

     1  
     2  struct option {
     3     const char *name;
     4     int         has_arg;
     5     int        *flag;
     6     int         val;
     7  };
     8  
     9  int getopt(int argc, char * const argv[], const char *optstring);
    10  int getopt_long(int argc, char * const argv[], const char *optstring,
    11                    const struct option *longopts, int *longindex);
    12  int getopt_long_only(int argc, char * const argv[], const char *optstring,
    13                    const struct option *longopts, int *longindex);
    14  char *optarg;
    15  int optind, opterr, optopt, required_argument, no_argument;