31 extern int getopt(
int nargc,
char*
const* nargv,
const char* options);
40# define optreset __mingw_optreset
57#if !defined(__UNISTD_H_SOURCED__) && !defined(__GETOPT_LONG_H__)
58#define __GETOPT_LONG_H__
79 extern int getopt_long(
int nargc,
char*
const* nargv,
const char* options,
80 const struct option* long_options,
int* idx);
81 extern int getopt_long_only(
int nargc,
char*
const* nargv,
const char* options,
82 const struct option* long_options,
int* idx);
86#ifndef HAVE_DECL_GETOPT
90# define HAVE_DECL_GETOPT 1
int optreset
Definition: getopt.c:62
int getopt_long_only(int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx)
Definition: getopt.c:508
@ required_argument
Definition: getopt.h:75
@ optional_argument
Definition: getopt.h:76
@ no_argument
Definition: getopt.h:74
int val
Definition: getopt.h:69
int optopt
Definition: getopt.c:61
int getopt(int nargc, char *const *nargv, const char *options)
Definition: getopt.c:476
int getopt_long(int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx)
Definition: getopt.c:495
int has_arg
Definition: getopt.h:67
int * flag
Definition: getopt.h:68
int optind
Definition: getopt.c:60
char * optarg
Definition: getopt.c:63
const char * name
Definition: getopt.h:66
int opterr
Definition: getopt.c:59